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); |
+if (!i18n) |
{ |
// Using Firefox' approach on i18n instead |