typo: FF doesn't have window.event

This commit is contained in:
tophf 2018-05-17 01:33:18 +03:00
parent 349c33b478
commit 0e81a4679d

View File

@ -621,7 +621,7 @@ onDOMscriptReady('/codemirror.js').then(() => {
function updatePreview(data, previewing) { function updatePreview(data, previewing) {
if (previewing !== true && previewing !== false) { 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); debounce(updatePreview, data && data.id === 'enabled' ? 0 : 400, null, true);
return; return;
} }