Browse Source

Firefox: implement toolbar button and popup

pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
7c69a427c2
  1. 6
      platform/firefox/vapi-common.js

6
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 {

Loading…
Cancel
Save