Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 11095040: Don't show desktop notifications in Opera (Closed)
Patch Set: Created July 24, 2013, 12:47 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | metadata.opera » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -586,7 +586,8 @@
{
activeNotification = notification;
- if (activeNotification.severity === "critical")
+ if (activeNotification.severity === "critical"
+ && typeof webkitNotifications !== "undefined")
{
var notification = webkitNotifications.createHTMLNotification("notification.html");
notification.show();
« no previous file with comments | « no previous file | metadata.opera » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld