讨论加特殊图标
This commit is contained in:
3
.output/server/node_modules/unhead/dist/index.mjs
generated
vendored
3
.output/server/node_modules/unhead/dist/index.mjs
generated
vendored
@@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user