1
0
mirror of https://github.com/ArcticFoxes-net/ONC-Converter synced 2024-11-09 05:41:33 -05:00

Use JavaScript standard style

This commit is contained in:
thomkeh 2018-07-02 14:36:31 +01:00 committed by GitHub
parent 71bb7660b5
commit 9cfbed769c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,10 +46,10 @@
function readFile (file) {
return new Promise(resolve => {
let reader = new FileReader()
reader.onload = (e => {
reader.onload = e => {
// callback and remove windows-style newlines
resolve(e.target.result.replace(/\r/g, ''))
})
}
// start reading
reader.readAsText(file)
})