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

Unified Diff: i18n.js

Issue 29573083: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Remove check for window.browser Created Oct. 13, 2017, 4:59 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
Index: i18n.js
===================================================================
--- a/i18n.js
+++ b/i18n.js
@@ -53,17 +53,17 @@
processString(match[4], currentElement);
}
else
currentElement.appendChild(document.createTextNode(str));
}
while (element.lastChild)
element.removeChild(element.lastChild);
- processString(chrome.i18n.getMessage(stringName, args), element);
+ processString(browser.i18n.getMessage(stringName, args), element);
}
};
// Loads i18n strings
function loadI18nStrings()
{
function addI18nStringsToElements(containerElement)
{

Powered by Google App Engine
This is Rietveld