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

Unified Diff: notification.js

Issue 5767063142400000: notification fixes (Closed)
Patch Set: removed ext/common.js import from notification.html Created March 6, 2014, 9:23 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
« background.js ('K') | « 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;
« background.js ('K') | « metadata.common ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld