Fix: style.id consistency
This commit is contained in:
parent
13ca45a104
commit
45da3ff50e
|
@ -1944,7 +1944,7 @@ function onRuntimeMessage(request) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'styleDeleted':
|
case 'styleDeleted':
|
||||||
if (styleId && styleId === request.id || editor && editor.getStyle().id === request.id) {
|
if (styleId === request.id || editor && editor.getStyle().id === request.id) {
|
||||||
window.onbeforeunload = () => {};
|
window.onbeforeunload = () => {};
|
||||||
closeCurrentTab();
|
closeCurrentTab();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user