mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Add setTimeout and clearTimeout to plugin scope
This commit is contained in:
parent
45e0340787
commit
e7fa5d7f9d
1 changed files with 4 additions and 0 deletions
|
|
@ -89,6 +89,10 @@ Zotero.Plugins = new function () {
|
|||
scope[name] = REASONS[name];
|
||||
}
|
||||
Object.assign(scope, { Services, Worker, ChromeWorker, Zotero });
|
||||
// Add additional global functions
|
||||
scope.setTimeout = Zotero.setTimeout;
|
||||
scope.clearTimeout = Zotero.clearTimeout;
|
||||
|
||||
scopes.set(addon.id, scope);
|
||||
|
||||
var uri = addon.getResourceURI().spec + 'bootstrap.js';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue