diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-30 21:53:01 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2020-04-30 21:53:01 +0200 |
commit | 1f8fdcabeaa3151037954d556537f8fba4488b2c (patch) | |
tree | dd4643bf3db081bf0ed4374f8a9f8cdb5fb6edf0 /src | |
parent | d0dffff25484011828f8149951eaad840e9163c7 (diff) | |
download | wcms-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')
-rw-r--r-- | src/edit.js | 2 |
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'); |