Merge pull request #12033 from SpiralBrad/patch-1

Allows hosting in a subfolder instead of only root
This commit is contained in:
Autechre 2021-02-15 03:30:31 +01:00 committed by GitHub
commit c27f15a9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,10 +96,10 @@ function setupFileSystem(backend)
/* create an XmlHttpRequest filesystem for the bundled data */
var xfs1 = new BrowserFS.FileSystem.XmlHttpRequest
(".index-xhr", "/assets/frontend/bundle/");
(".index-xhr", "assets/frontend/bundle/");
/* create an XmlHttpRequest filesystem for core assets */
var xfs2 = new BrowserFS.FileSystem.XmlHttpRequest
(".index-xhr", "/assets/cores/");
(".index-xhr", "assets/cores/");
console.log("WEBPLAYER: initializing filesystem: " + backend);
mfs.mount('/home/web_user/retroarch/userdata', afs);