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

Unified Diff: notification.js

Issue 5767063142400000: notification fixes (Closed)
Patch Set: Nit fix for long lines Created March 6, 2014, 10:10 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 | « metadata.common ('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
@@ -15,6 +15,12 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
+//This case is true only for chrome when loading from notification.html
+if (typeof ext === "undefined")
+{
+ var ext = chrome.extension.getBackgroundPage().ext;
+}
+
var backgroundPage = ext.backgroundPage.getWindow();
var require = backgroundPage.require;
« no previous file with comments | « metadata.common ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld