mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-24 12:14:05 +03:00
fix: optional chaining is not supported on older webviews (#9530)
This commit is contained in:
parent
70c51371e0
commit
35b25f7e5c
6
.changes/script-older-os.md
Normal file
6
.changes/script-older-os.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@tauri-apps/api": patch:bug
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Do not use JS optional chaining to prevent script errors on older webviews such as macOS 10.14.
|
@ -20,8 +20,12 @@
|
||||
|`deny-set-webview-zoom`|Denies the set_webview_zoom command without any pre-configured scope.|
|
||||
|`allow-webview-close`|Enables the webview_close command without any pre-configured scope.|
|
||||
|`deny-webview-close`|Denies the webview_close command without any pre-configured scope.|
|
||||
|`allow-webview-hide`|Enables the webview_hide command without any pre-configured scope.|
|
||||
|`deny-webview-hide`|Denies the webview_hide command without any pre-configured scope.|
|
||||
|`allow-webview-position`|Enables the webview_position command without any pre-configured scope.|
|
||||
|`deny-webview-position`|Denies the webview_position command without any pre-configured scope.|
|
||||
|`allow-webview-show`|Enables the webview_show command without any pre-configured scope.|
|
||||
|`deny-webview-show`|Denies the webview_show command without any pre-configured scope.|
|
||||
|`allow-webview-size`|Enables the webview_size command without any pre-configured scope.|
|
||||
|`deny-webview-size`|Denies the webview_size command without any pre-configured scope.|
|
||||
|`default`|Default permissions for the plugin.|
|
||||
|
File diff suppressed because one or more lines are too long
@ -29,7 +29,7 @@
|
||||
'Content-Type': contentType,
|
||||
'Tauri-Callback': callback,
|
||||
'Tauri-Error': error,
|
||||
...options?.headers
|
||||
...((options && options.headers) || {})
|
||||
}
|
||||
})
|
||||
.then((response) => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2021",
|
||||
"target": "es2019",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"skipLibCheck": true,
|
||||
|
Loading…
Reference in New Issue
Block a user