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

Unified Diff: chrome/content/ui/i18n.js

Issue 11533106: Prepared adblockplus for Safari (Closed)
Patch Set: Prepared adblockplus for Safari Created Sept. 2, 2013, 6:29 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
Index: chrome/content/ui/i18n.js
===================================================================
--- a/chrome/content/ui/i18n.js
+++ b/chrome/content/ui/i18n.js
@@ -15,12 +15,8 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-var i18n;
-if (typeof chrome != "undefined")
-{
- i18n = chrome.i18n;
-}
-else
+var i18n = (window.ext && ext.i18n) || (window.chrome && chrome.i18n);
Felix Dahlke 2013/09/06 08:08:24 Why not make ext.i18n point to chrome.i18n in ext.
Sebastian Noack 2013/09/06 09:05:37 That's what I do. The only reason I check for both
+if (!i18n)
{
// Using Firefox' approach on i18n instead

Powered by Google App Engine
This is Rietveld