Fix CSS url() links when served from zotero:// protocol
This commit is contained in:
parent
3fc4bc2efe
commit
025eed93be
1 changed files with 5 additions and 0 deletions
|
@ -819,6 +819,11 @@ function ChromeExtensionHandler() {
|
|||
var fileURI = ph.newFileURI(file);
|
||||
}
|
||||
var channel = ioService.newChannelFromURI(fileURI);
|
||||
//set originalURI so that it seems like we're serving from zotero:// protocol
|
||||
//this is necessary to allow url() links to work from within css files
|
||||
//otherwise they try to link to files on the file:// protocol, which is not allowed
|
||||
channel.originalURI = uri;
|
||||
|
||||
return channel;
|
||||
}
|
||||
catch (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue