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

Unified Diff: lib/notificationHelper.js

Issue 29349184: Noissue - Ignore unrelated notification clicks (Closed)
Patch Set: Created Aug. 8, 2016, 3:05 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/notificationHelper.js
diff --git a/lib/notificationHelper.js b/lib/notificationHelper.js
index 4667bc365597dc932e7985d9608290815d13057a..385614a351d505b1f665d9eb42ad484d47585f74 100644
--- a/lib/notificationHelper.js
+++ b/lib/notificationHelper.js
@@ -121,6 +121,9 @@ function openNotificationLinks()
function notificationButtonClick(buttonIndex)
{
+ if (!(activeButtons && buttonIndex in activeButtons))
+ return;
+
switch (activeButtons[buttonIndex].type)
{
case "link":
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld