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

Unified Diff: ext/background.js

Issue 29376555: [adblockplus] Issue 4915 - Expose ext.i18n for background pages (Closed)
Patch Set: Created Feb. 20, 2017, 1:40 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 | ext/common.js » ('j') | ext/common.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/background.js
diff --git a/ext/background.js b/ext/background.js
index d631f57b680de35e97e586c578d03252b811e227..e2ba9c2ac5dc30be4cbed3c87ec8b1df61b36354 100644
--- a/ext/background.js
+++ b/ext/background.js
@@ -18,10 +18,11 @@
let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", null);
let {Services} = Cu.import("resource://gre/modules/Services.jsm", null);
-let {_EventTarget: EventTarget} = require("ext_common");
+let {_EventTarget: EventTarget, i18n: i18n} = require("ext_common");
Sebastian Noack 2017/02/20 16:53:20 You don't have to specify both destination and ori
wspee 2017/03/01 14:54:08 Done.
let {port} = require("messaging");
exports.onMessage = new EventTarget(port);
+exports.i18n = i18n;
function Page(windowID)
{
« no previous file with comments | « no previous file | ext/common.js » ('j') | ext/common.js » ('J')

Powered by Google App Engine
This is Rietveld