aboutsummaryrefslogtreecommitdiff
path: root/src/edit.js
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-04-30 21:53:01 +0200
committern-peugnet <n.peugnet@free.fr>2020-04-30 21:53:01 +0200
commit1f8fdcabeaa3151037954d556537f8fba4488b2c (patch)
treedd4643bf3db081bf0ed4374f8a9f8cdb5fb6edf0 /src/edit.js
parentd0dffff25484011828f8149951eaad840e9163c7 (diff)
downloadwcms-1f8fdcabeaa3151037954d556537f8fba4488b2c.tar.gz
wcms-1f8fdcabeaa3151037954d556537f8fba4488b2c.zip
fix: Can't find variable: InputEvent on Safari
Use the old Event instead of the experimental InputEvent. Fixes Sentry WCMS-N
Diffstat (limited to 'src/edit.js')
-rw-r--r--src/edit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.js b/src/edit.js
index 86f24c2..b1613f3 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -93,7 +93,7 @@ let editors = [];
let unsavedChanges = false;
/** @type {InputEvent} */
-const inputEvent = new InputEvent('input');
+const inputEvent = new Event('input');
window.addEventListener('load', () => {
form = document.getElementById('update');