typo: FF doesn't have window.event
This commit is contained in:
parent
349c33b478
commit
0e81a4679d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user