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

Unified Diff: notification.js

Issue 5000038044401664: Issue 2656 - Fixed notification shown in popup (Closed)
Patch Set: Considered active notification being nullable in documentation Created June 6, 2015, 9:51 a.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 | « lib/notificationHelper.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: notification.js
===================================================================
--- a/notification.js
+++ b/notification.js
@@ -20,6 +20,7 @@
var Utils = require("utils").Utils;
var Notification = require("notification").Notification;
+var getActiveNotification = require("notificationHelper").getActiveNotification;
function getDocLinks(notification)
{
@@ -61,7 +62,7 @@
window.addEventListener("load", function()
{
- var notification = backgroundPage.activeNotification;
+ var notification = getActiveNotification();
if (!notification)
return;
« no previous file with comments | « lib/notificationHelper.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld