Index: chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html |
diff --git a/chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html b/chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html |
index bdf4ca52fb439944863cf2d177aabdfea0f0e865..b717ff38dce43550903d534652981e79b04ec692 100644 |
--- a/chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html |
+++ b/chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html |
@@ -400,9 +400,9 @@ as a text notification when it arrives: |
<pre> |
function showPushMessage(message) { |
- var notification = window.webkitNotifications.createNotification( |
- '', 'New notification', message.payload + " [" + message.subchannelId + "]"); |
- notification.show(); |
+ new Notification('New notification', { |
+ body: message.payload + " [" + message.subchannelId + "]" |
+ }); |
} |
</pre> |