@@ -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.
@@ -102,7 +102,8 @@
'click',
function (e) {
let target = e.target
- const baseTarget = document.querySelector('head base')?.target
+ const base = document.querySelector('head base')
+ const baseTarget = base ? base.target : null
while (target != null) {
if (target.matches('a')) {
if (
@@ -1,6 +1,6 @@
{
"compilerOptions": {
- "target": "es2021",
+ "target": "es2019",
"module": "esnext",
"moduleResolution": "bundler",
"skipLibCheck": true,