diff --git a/edit/edit.js b/edit/edit.js index fb81de95..d972fc31 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -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;