Skip to content

Commit

Permalink
Fixed parse normal css file will return no code
Browse files Browse the repository at this point in the history
  • Loading branch information
sylingd committed Jan 16, 2018
1 parent 6810ec5 commit 715bae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/userstyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ function parseStyleFile(code, options, advanced) {
json = JSON.parse(code);
} catch (e) {
// normal css file, check if advanced is passed
result.code = code;
let body = code;
if (Object.keys(advanced.item).length > 0) {
if (Object.keys(advanced.saved).length === 0) {
Expand Down

0 comments on commit 715bae7

Please sign in to comment.