Add try/catch when loading plugin bootstrap.js
This commit is contained in:
parent
56c3635214
commit
d654daae28
1 changed files with 13 additions and 8 deletions
|
@ -157,14 +157,19 @@ Zotero.Plugins = new function () {
|
|||
|
||||
scopes.set(addon.id, scope);
|
||||
|
||||
var uri = addon.getResourceURI().spec + 'bootstrap.js';
|
||||
Services.scriptloader.loadSubScriptWithOptions(
|
||||
uri,
|
||||
{
|
||||
target: scope,
|
||||
ignoreCache: true
|
||||
}
|
||||
);
|
||||
try {
|
||||
let uri = addon.getResourceURI().spec + 'bootstrap.js';
|
||||
Services.scriptloader.loadSubScriptWithOptions(
|
||||
uri,
|
||||
{
|
||||
target: scope,
|
||||
ignoreCache: true
|
||||
}
|
||||
);
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue