Save metadata debounced for extensions

This commit is contained in:
SillyLossy
2023-06-01 16:51:35 +03:00
parent 68845481d8
commit 6bc520f800
4 changed files with 8 additions and 12 deletions

View File

@ -1,5 +1,5 @@
import { callPopup, eventSource, event_types, saveSettings, saveSettingsDebounced } from "../script.js";
import { isSubsetOf } from "./utils.js";
import { isSubsetOf, debounce } from "./utils.js";
export {
getContext,
getApiUrl,
@ -14,6 +14,7 @@ export {
let extensionNames = [];
let manifests = [];
const defaultUrl = "http://localhost:5100";
export const saveMetadataDebounced = debounce(async () => await getContext().saveMetadata(), 1000);
// Disables parallel updates
class ModuleWorkerWrapper {