Skip to content

Commit d0bfd22

Browse files
authored
fix: webview can contain any string for preload (#13733)
fixes #13661
1 parent 41b5cd6 commit d0bfd22

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/nasty-guests-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: webview preload tag can be any string

packages/svelte/elements.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ export interface HTMLWebViewAttributes extends HTMLAttributes<HTMLElement> {
18051805
nodeintegration?: boolean | undefined | null;
18061806
partition?: string | undefined | null;
18071807
plugins?: boolean | undefined | null;
1808-
preload?: 'auto' | 'none' | 'metadata' | '' | undefined | null;
1808+
preload?: string | undefined | null; // in the DOM it's only 'auto' | 'none' | 'metadata' | '', but electron allows arbitrary values
18091809
src?: string | undefined | null;
18101810
useragent?: string | undefined | null;
18111811
webpreferences?: string | undefined | null;

0 commit comments

Comments
 (0)