Fix missing colored tag swatches on Windows/Linux
In Firefox 41, file: URIs can no longer be loaded (at least via Image) from the hidden window on Windows/Linux, but chrome: URIs still work. Not sure why I was using a file: URI to begin with.
This commit is contained in:
parent
974a07bf73
commit
ce72b450bf
1 changed files with 0 additions and 3 deletions
|
@ -729,9 +729,6 @@ Zotero.Tags = new function() {
|
|||
let ios = Components.classes['@mozilla.org/network/io-service;1']
|
||||
.getService(Components.interfaces["nsIIOService"]);
|
||||
let uri = ios.newURI(extraImage, null, null);
|
||||
uri = Components.classes['@mozilla.org/chrome/chrome-registry;1']
|
||||
.getService(Components.interfaces["nsIChromeRegistry"])
|
||||
.convertChromeURL(uri);
|
||||
|
||||
var img = new win.Image();
|
||||
img.src = uri.spec;
|
||||
|
|
Loading…
Reference in a new issue