Fix: ignore comment block
This commit is contained in:
parent
196b6aac63
commit
450cd60aeb
|
@ -1,7 +1,7 @@
|
||||||
/* eslint no-eq-null: 0, eqeqeq: [2, "smart"] */
|
/* eslint no-eq-null: 0, eqeqeq: [2, "smart"] */
|
||||||
/*
|
/*
|
||||||
global createCache db calcStyleDigest normalizeStyleSections db promisify
|
global createCache db calcStyleDigest normalizeStyleSections db promisify
|
||||||
getStyleWithNoCode msg
|
getStyleWithNoCode msg styleCodeEmpty
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ const styleManager = (() => {
|
||||||
cache[data.id] = {
|
cache[data.id] = {
|
||||||
id: data.id,
|
id: data.id,
|
||||||
enabled: data.enabled,
|
enabled: data.enabled,
|
||||||
sections: code
|
code
|
||||||
};
|
};
|
||||||
appliesTo.add(url);
|
appliesTo.add(url);
|
||||||
}
|
}
|
||||||
|
@ -304,8 +304,7 @@ const styleManager = (() => {
|
||||||
code += section.code;
|
code += section.code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// FIXME: trim comment?
|
return styleCodeEmpty(code) ? null : code;
|
||||||
return code;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepare() {
|
function prepare() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user