webgl/public/gl/io/file.js
Tyler Murphy 30cf48cd70 cube
2023-01-18 22:43:02 -05:00

11 lines
No EOL
222 B
JavaScript

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