Refactor: isUsercss
This commit is contained in:
parent
92cadc03fa
commit
c4c4b5638e
11
edit/edit.js
11
edit/edit.js
|
@ -1352,13 +1352,10 @@ function setStyleMeta(style) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isUsercss(style) {
|
function isUsercss(style) {
|
||||||
if (style.usercssData) {
|
return (
|
||||||
return true;
|
style.usercssData ||
|
||||||
}
|
!style.id && prefs.get('newStyleInUsercss')
|
||||||
if (!style.id && prefs.get('newStyleInUsercss')) {
|
);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function initWithSectionStyle({style, codeIsUpdated}) {
|
function initWithSectionStyle({style, codeIsUpdated}) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user