fix: webview can contain any string for preload (#13733)

fixes #13661
pull/13738/head
Florent BENOIT 11 months ago committed by GitHub
parent 41b5cd6f5d
commit d0bfd22bef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: webview preload tag can be any string

@ -1805,7 +1805,7 @@ export interface HTMLWebViewAttributes extends HTMLAttributes<HTMLElement> {
nodeintegration?: boolean | undefined | null; nodeintegration?: boolean | undefined | null;
partition?: string | undefined | null; partition?: string | undefined | null;
plugins?: boolean | 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; src?: string | undefined | null;
useragent?: string | undefined | null; useragent?: string | undefined | null;
webpreferences?: string | undefined | null; webpreferences?: string | undefined | null;

Loading…
Cancel
Save