Refactor: isUsercss

This commit is contained in:
eight 2017-11-09 07:20:57 +08:00
parent 92cadc03fa
commit c4c4b5638e

View File

@ -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}) {