no message

This commit is contained in:
A1300399510
2024-02-18 20:19:03 +08:00
parent 11ab23f6d3
commit 50c4074182
165 changed files with 18003 additions and 13290 deletions

View File

@@ -541,6 +541,7 @@ function useScript(input, _options) {
resolve(options.use());
function watchForScriptLoaded({ script: script2 }) {
if (script2.id === id && script2.status === "loaded") {
script2.loaded = true;
resolve(options.use?.());
head.hooks.removeHook("script:updated", watchForScriptLoaded);
}
@@ -626,7 +627,7 @@ function useScript(input, _options) {
} else {
return script.waitForLoad().then(
(api) => {
api[fn](...args);
return api[fn](...args);
}
);
}