Fix: move editor creation to one structure

This commit is contained in:
eight 2017-09-12 20:01:27 +08:00
parent 4b2f7a1a46
commit 39df704591

View File

@ -1366,13 +1366,12 @@ function setStyleMeta(style) {
} }
function initWithStyle(request) { function initWithStyle(request) {
if (!editor) {
if (!style.usercss) { if (!style.usercss) {
initWithSectionStyle(request); initWithSectionStyle(request);
return; } else {
}
if (!editor) {
editor = createSourceEditor(request.style); editor = createSourceEditor(request.style);
}
return; return;
} }