-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to generate script source for manual script injection in hooks #89
base: main
Are you sure you want to change the base?
Conversation
|
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
- adds a new function to generate the script source for manual injection using a hook - adds a new prop `disableHeadScriptInjection` to disable script addition from the rendered component
ef36566
to
576551a
Compare
is there anything I should do to have this considered? |
Hey there @fnimick, thanks for this! I need to investigate why the contents of the |
Adds a new function to return the script source, for manual injection into a
<script>
tag using a hook, as described in sveltejs/kit#10377 (comment)Adds a new prop to disable head script addition at the component level, if you are using the above function for manual injection.
Also updates
setInitialMode
to correctly use configured local storage keys.