webgl/public/js/file.js
Tyler Murphy a28e995202 initial
2023-01-18 09:30:41 -05:00

12 lines
No EOL
208 B
JavaScript

const File = {}
File.read = async (path) => {
try {
let data = await fetch(path)
let text = await data.text()
return text
} catch (err) {
return undefined
}
}