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