Skip to content

Commit

Permalink
fix: webview can contain any string for preload (#13733)
Browse files Browse the repository at this point in the history
fixes #13661
  • Loading branch information
benoitf authored Oct 21, 2024
1 parent 41b5cd6 commit d0bfd22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nasty-guests-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: webview preload tag can be any string
2 changes: 1 addition & 1 deletion packages/svelte/elements.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ export interface HTMLWebViewAttributes extends HTMLAttributes<HTMLElement> {
nodeintegration?: boolean | undefined | null;
partition?: string | undefined | null;
plugins?: boolean | undefined | null;
preload?: 'auto' | 'none' | 'metadata' | '' | undefined | null;
preload?: string | undefined | null; // in the DOM it's only 'auto' | 'none' | 'metadata' | '', but electron allows arbitrary values
src?: string | undefined | null;
useragent?: string | undefined | null;
webpreferences?: string | undefined | null;
Expand Down

0 comments on commit d0bfd22

Please sign in to comment.