blob: 4886db2bfd0f211725a8390d141a0d2d229b1127 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var messagePort = null;
addEventListener('message', function(event) {
messagePort = event.data;
messagePort.postMessage('ready');
});
addEventListener('notificationclick', function(event) {
if (event.notification.data === 'ACTION_CREATE_TAB')
clients.openWindow('https://chrome.com/');
event.notification.close();
});