1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 08:15:03 +12:00

Firefox: implement toolbar button and popup

This commit is contained in:
Deathamns 2014-12-16 13:44:34 +01:00 committed by gorhill
parent 799aafbcd4
commit 7c69a427c2

View file

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