Fix: move editor creation to one structure
This commit is contained in:
parent
4b2f7a1a46
commit
39df704591
11
edit/edit.js
11
edit/edit.js
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user