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:
parent
71bb7660b5
commit
9cfbed769c
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user