Add IOUtils and PathUtils to plugin sandbox

This commit is contained in:
Dan Stillman 2023-08-04 06:17:10 -04:00
parent 9b0ce9558c
commit 3a43a98f10

View file

@ -138,19 +138,22 @@ Zotero.Plugins = new function () {
{
Zotero,
ChromeWorker,
IOUtils,
Localization,
PathUtils,
Services,
Worker,
XMLSerializer,
// Add additional global functions
setTimeout,
clearTimeout,
setInterval,
clearInterval,
requestIdleCallback,
cancelIdleCallback,
}
);
// Add additional global functions
scope.setTimeout = setTimeout;
scope.clearTimeout = clearTimeout;
scope.setInterval = setInterval;
scope.clearInterval = clearInterval;
scope.requestIdleCallback = requestIdleCallback;
scope.cancelIdleCallback = cancelIdleCallback;
scopes.set(addon.id, scope);