Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / examples / howto / sandbox / eventpage.js
index 03800c6..feb0738 100644 (file)
@@ -14,11 +14,10 @@ chrome.browserAction.onClicked.addListener(function() {
 
 window.addEventListener('message', function(event) {
   if (event.data.html) {
-    var notification = webkitNotifications.createNotification(
-      'icon.png',
-      'Templated!',
-      'HTML Received for "' + event.data.name + '": `' + event.data.html + '`'
-    );
-    notification.show();
+    new Notification('Templated!', {
+      icon: 'icon.png',
+      body: 'HTML Received for "' + event.data.name + '": `' +
+          event.data.html + '`'
+    });
   }
 });