From 7c69a427c2772908623bce4ce18ee0e6859961dc Mon Sep 17 00:00:00 2001 From: Deathamns Date: Tue, 16 Dec 2014 13:44:34 +0100 Subject: [PATCH] Firefox: implement toolbar button and popup --- platform/firefox/vapi-common.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/firefox/vapi-common.js b/platform/firefox/vapi-common.js index 71a0e54..0bcc95c 100644 --- a/platform/firefox/vapi-common.js +++ b/platform/firefox/vapi-common.js @@ -69,13 +69,15 @@ vAPI.download = function(details) { /******************************************************************************/ vAPI.getURL = function(path) { - return 'chrome://ublock/content/' + path.replace(/^\/+/, ''); + return 'chrome://' + location.host + '/content/' + path.replace(/^\/+/, ''); }; +/******************************************************************************/ + vAPI.i18n = (function() { var stringBundle = Components.classes['@mozilla.org/intl/stringbundle;1'] .getService(Components.interfaces.nsIStringBundleService) - .createBundle('chrome://ublock/locale/messages.properties'); + .createBundle('chrome://' + location.host + '/locale/messages.properties'); return function(s) { try {