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,7 +157,8 @@ Zotero.Plugins = new function () {
|
||||||
|
|
||||||
scopes.set(addon.id, scope);
|
scopes.set(addon.id, scope);
|
||||||
|
|
||||||
var uri = addon.getResourceURI().spec + 'bootstrap.js';
|
try {
|
||||||
|
let uri = addon.getResourceURI().spec + 'bootstrap.js';
|
||||||
Services.scriptloader.loadSubScriptWithOptions(
|
Services.scriptloader.loadSubScriptWithOptions(
|
||||||
uri,
|
uri,
|
||||||
{
|
{
|
||||||
|
@ -166,6 +167,10 @@ Zotero.Plugins = new function () {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
catch (e) {
|
||||||
|
Zotero.logError(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue