don't set sessionStorage.justEditedStyleId to null

This commit is contained in:
tophf 2017-12-24 02:37:26 +03:00
parent 487bc77baa
commit 57806bed45

View File

@ -230,7 +230,8 @@ function initStyleData() {
});
return getStylesSafe({id: id || -1})
.then(([style = createEmptyStyle()]) => {
styleId = sessionStorage.justEditedStyleId = style.id;
styleId = style.id;
if (styleId) sessionStorage.justEditedStyleId = styleId;
// we set "usercss" class on <html> when <body> is empty
// so there'll be no flickering of the elements that depend on it
if (isUsercss(style)) {