We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4268ef6 commit 20ab4aeCopy full SHA for 20ab4ae
src/runtime/composables/useScriptTriggerConsent.ts
@@ -36,7 +36,7 @@ export function useScriptTriggerConsent(options?: ConsentScriptTriggerOptions):
36
return
37
}
38
// else it's returning a promise to await
39
- const val = options.postConsentTrigger()
+ const val = (options.postConsentTrigger as (() => Promise<any>))()
40
if (val instanceof Promise) {
41
return val.then(() => runner(resolve))
42
0 commit comments