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) {
|
||||
if (style.usercssData) {
|
||||
return true;
|
||||
}
|
||||
if (!style.id && prefs.get('newStyleInUsercss')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return (
|
||||
style.usercssData ||
|
||||
!style.id && prefs.get('newStyleInUsercss')
|
||||
);
|
||||
}
|
||||
|
||||
function initWithSectionStyle({style, codeIsUpdated}) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user