minified iso (5.6mb now) + updated manual
This commit is contained in:
parent
0b42f19226
commit
aaf6b637a4
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/awk -f
|
||||||
|
BEGIN{
|
||||||
|
href=ARGV[1]
|
||||||
|
|
||||||
|
if( match(href,/\.glb[#?]?/) ){
|
||||||
|
|
||||||
|
print( "<a-entity xrf='" href "'></a-entity>" ) > "/root/index.html"
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
system("js 'window.open(\"" href "\")'" )
|
||||||
|
}
|
||||||
|
}
|
|
@ -183,15 +183,12 @@ https://127.0.0.1 (instead of https://localhost) because the latter cripples the
|
||||||
|
|
||||||
## webrequests to the filesystem
|
## webrequests to the filesystem
|
||||||
|
|
||||||
Javascript webrequests can read from the filesystem via the 'file://host/path' protocol:
|
Javascript webrequests can read from the filesystem:
|
||||||
|
|
||||||
```
|
```
|
||||||
fetch("file://xrsh/mnt/profile.browser")
|
fetch("/mnt/profile.browser")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
NOTE: it's `file://xrsh` not `file:///` (basically it includes host `xrsh`) to prevent the browser security-model from blocking the request (and select the xrsh filesystem, not the native filesystem).
|
|
||||||
|
|
||||||
current [security] limitations:
|
current [security] limitations:
|
||||||
|
|
||||||
* only /mnt directory is exposed
|
* only /mnt directory is exposed
|
||||||
|
|
Loading…
Reference in New Issue