Fix: style.id consistency

This commit is contained in:
eight 2017-11-01 08:43:35 +08:00
parent 13ca45a104
commit 45da3ff50e

View File

@ -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;