5997553b2bec770a5d040984b93c1f59cbb795ae — Tim Morgan 1 year, 11 months ago a97a44a master
Fix an issue with load order
2 files changed, 4 insertions(+), 4 deletions(-)

M js/fs.js
M termy.js
M js/fs.js => js/fs.js +2 -2
@@ 1,4 1,4 @@
-export let MFS
+export let fsWrapper = {}
 
 BrowserFS.FileSystem.XmlHttpRequest.Create({
   index: 'js/bin/index.json'


@@ 8,7 8,7 @@ BrowserFS.FileSystem.XmlHttpRequest.Create({
       '/': root,
       '/bin': bin
     }, (e, mfs) => {
-      MFS = mfs
+      fsWrapper.MFS = mfs
       BrowserFS.initialize(mfs)
     })
   })

M termy.js => termy.js +2 -2
@@ 1,9 1,9 @@
 import Shell from './js/shell.js'
-import { MFS, FS } from './js/fs.js'
+import { fsWrapper, FS } from './js/fs.js'
 
 class Session {
   constructor() {
-    this.MFS = MFS
+    this.fsWrapper = fsWrapper
     this.term = new Terminal()
     this.env = {
       PWD: '/'