no message

This commit is contained in:
A1300399510
2024-01-26 11:09:20 +08:00
parent bd7c792cbe
commit 2ff4926405
179 changed files with 27287 additions and 2590 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);
}
);
}