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 {