summaryrefslogtreecommitdiff
path: root/public/gl/io
diff options
context:
space:
mode:
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