diff --git a/.gitignore b/.gitignore index 29432c99..8b786b66 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ node_modules/ package-lock.json yarn.lock *.zip +.eslintcache diff --git a/background/parserlib-loader.js b/background/parserlib-loader.js new file mode 100644 index 00000000..8275e8fd --- /dev/null +++ b/background/parserlib-loader.js @@ -0,0 +1,9 @@ +/* global importScripts parserlib CSSLint parseMozFormat */ +'use strict'; + +importScripts('/vendor-overwrites/csslint/parserlib.js', '/js/moz-parser.js'); +parserlib.css.Tokens[parserlib.css.Tokens.COMMENT].hide = false; + +self.onmessage = ({data}) => { + self.postMessage(parseMozFormat(data)); +}; diff --git a/edit.html b/edit.html index d99c00c9..8463a984 100644 --- a/edit.html +++ b/edit.html @@ -25,7 +25,6 @@ - @@ -65,6 +64,8 @@ + + @@ -87,6 +88,16 @@ + + + + + + + + + +