mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Convert from FileReader.readAsText() to Blob.text() in demo page per new eslint-plugin-unicorn rule.
This commit is contained in:
parent
71a8cb1e1b
commit
d9818ce3b4
1 changed files with 3 additions and 5 deletions
|
@ -93,12 +93,10 @@
|
|||
onMarkdownInput();
|
||||
} else {
|
||||
// Update from File object
|
||||
var reader = new FileReader();
|
||||
reader.onload = function onload(e) {
|
||||
markdown.value = e.target.result;
|
||||
source.text().then((text) => {
|
||||
markdown.value = text;
|
||||
onMarkdownInput();
|
||||
};
|
||||
reader.readAsText(source);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue