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 (!style.usercss) {
initWithSectionStyle(request);
return;
}
if (!editor) { if (!editor) {
editor = createSourceEditor(request.style); if (!style.usercss) {
initWithSectionStyle(request);
} else {
editor = createSourceEditor(request.style);
}
return; return;
} }