Fix: style.id consistency
This commit is contained in:
parent
13ca45a104
commit
45da3ff50e
|
@ -1944,7 +1944,7 @@ function onRuntimeMessage(request) {
|
|||
}
|
||||
break;
|
||||
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 = () => {};
|
||||
closeCurrentTab();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user