summaryrefslogtreecommitdiff
path: root/public/gl/io
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-01-18 22:43:02 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-01-18 22:43:02 -0500
commit30cf48cd70f1c52f89362245891be355af110afe (patch)
tree5cfee873428a8519c5d117917f3abbb3659b631b /public/gl/io
parentinitial (diff)
downloadwebgl-30cf48cd70f1c52f89362245891be355af110afe.tar.gz
webgl-30cf48cd70f1c52f89362245891be355af110afe.tar.bz2
webgl-30cf48cd70f1c52f89362245891be355af110afe.zip
cube
Diffstat (limited to '')
-rw-r--r--public/gl/io/file.js (renamed from public/js/file.js)5
1 files changed, 2 insertions, 3 deletions
diff --git a/public/js/file.js b/public/gl/io/file.js
index 7675abb..f89565c 100644
--- a/public/js/file.js
+++ b/public/gl/io/file.js
@@ -1,6 +1,6 @@
-const File = {}
+export { readFileAsync }
-File.read = async (path) => {
+const readFileAsync = async (path) => {
try {
let data = await fetch(path)
let text = await data.text()
@@ -8,5 +8,4 @@ File.read = async (path) => {
} catch (err) {
return undefined
}
-
} \ No newline at end of file