1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 18:09:49 +02:00

fix InputEvent global check (#2469)

This commit is contained in:
Espen Hovlandsdal
2018-12-04 20:12:13 +01:00
committed by Ian Storm Taylor
parent 5395931680
commit 73b4cb423e

View File

@@ -65,7 +65,7 @@ const FEATURE_RULES = [
[
'inputeventslevel1',
window => {
const event = window.InputEvent ? new InputEvent('input') : {}
const event = window.InputEvent ? new window.InputEvent('input') : {}
const support = 'inputType' in event
return support
},