Skip to content

Commit

Permalink
feat: cookie scripts refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
abocsan-plenty committed Dec 7, 2023
1 parent 12b30eb commit 3f77cce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/composables/useReadCookieBar/useReadCookieBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const fetchScripts = (scripts: string[]) => {
} else {
const method = toRef(cookieScripts, script);

method.value();
if (method.value) {
method.value();
}
}
} catch (error: any) {
console.error(error);
Expand Down

0 comments on commit 3f77cce

Please sign in to comment.