Fix import into editor
This commit is contained in:
parent
afc38b0bc8
commit
4e502e57eb
10
edit/edit.js
10
edit/edit.js
|
@ -1504,8 +1504,14 @@ function fromMozillaFormat() {
|
||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
|
|
||||||
function doImport() {
|
function doImport(event) {
|
||||||
const replaceOldStyle = this.name === 'import-replace';
|
// parserlib contained in CSSLint-worker.js
|
||||||
|
onDOMscripted(['vendor-overwrites/csslint/csslint-worker.js'])
|
||||||
|
.then(() => doImportWhenReady(event.target));
|
||||||
|
}
|
||||||
|
|
||||||
|
function doImportWhenReady(target) {
|
||||||
|
const replaceOldStyle = target.name === 'import-replace';
|
||||||
$('.dismiss', popup).onclick();
|
$('.dismiss', popup).onclick();
|
||||||
const mozStyle = trimNewLines(popup.codebox.getValue());
|
const mozStyle = trimNewLines(popup.codebox.getValue());
|
||||||
const parser = new parserlib.css.Parser();
|
const parser = new parserlib.css.Parser();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user