Add debug line for loadURI() fallback after failed file.launch()
This commit is contained in:
parent
e119113564
commit
e30e3065ba
|
@ -3163,14 +3163,14 @@ var ZoteroPane = new function()
|
||||||
this.loadURI(url, event, { attachmentID: itemID});
|
this.loadURI(url, event, { attachmentID: itemID});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var fileURL = attachment.getLocalFileURL();
|
|
||||||
|
|
||||||
// Some platforms don't have nsILocalFile.launch, so we just load it and
|
// Some platforms don't have nsILocalFile.launch, so we just load it and
|
||||||
// let the Firefox external helper app window handle it
|
// let the Firefox external helper app window handle it
|
||||||
try {
|
try {
|
||||||
file.launch();
|
file.launch();
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
Zotero.debug("launch() not supported -- passing file to loadURI()");
|
||||||
|
var fileURL = attachment.getLocalFileURL();
|
||||||
window.loadURI(fileURL);
|
window.loadURI(fileURL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user