1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 var messagePort
= null;
7 addEventListener('message', function(event
) {
8 messagePort
= event
.data
;
9 messagePort
.postMessage('ready');
12 addEventListener('notificationclick', function(event
) {
13 event
.notification
.close();