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);
|
||||
});
|
||||
|
||||
function doImport() {
|
||||
const replaceOldStyle = this.name === 'import-replace';
|
||||
function doImport(event) {
|
||||
// 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();
|
||||
const mozStyle = trimNewLines(popup.codebox.getValue());
|
||||
const parser = new parserlib.css.Parser();
|
||||
|
|
Loading…
Reference in New Issue
Block a user