From 0e81a4679d2d4b2b81a1ce464ddb514f0ac14d06 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 17 May 2018 01:33:18 +0300 Subject: [PATCH] typo: FF doesn't have window.event --- edit/codemirror-editing-hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/codemirror-editing-hooks.js b/edit/codemirror-editing-hooks.js index 91299981..e06ae770 100644 --- a/edit/codemirror-editing-hooks.js +++ b/edit/codemirror-editing-hooks.js @@ -621,7 +621,7 @@ onDOMscriptReady('/codemirror.js').then(() => { function updatePreview(data, previewing) { if (previewing !== true && previewing !== false) { - if (data instanceof Event && !event.target.matches('.style-contributor')) return; + if (data instanceof Event && !data.target.matches('.style-contributor')) return; debounce(updatePreview, data && data.id === 'enabled' ? 0 : 400, null, true); return; }