File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1111 const w = new WanixRuntime ( {
1212 helpers : true ,
1313 export9p : queryParams . get ( 'export9p' ) === 'true' ,
14+ screen : queryParams . get ( 'screen' ) === 'true' ,
1415 debug9p : queryParams . get ( 'debug9p' ) === 'true' ,
1516 wasm : queryParams . get ( 'wasm' ) || "./wanix.wasm" ,
1617 bundle : queryParams . get ( 'bundle' ) || "/shell/bundle.tgz" ,
Original file line number Diff line number Diff line change @@ -39,6 +39,23 @@ export class WanixRuntime extends WanixHandle {
3939 fetch ( config . wasm ) . then ( r => r . arrayBuffer ( ) ) . then ( this . _loadWasm ) ;
4040 }
4141
42+ // this is totally experimental and shouldn't be used yet
43+ if ( config . screen ) {
44+ const screen = document . createElement ( 'div' ) ;
45+ const div = document . createElement ( 'div' ) ;
46+ const canvas = document . createElement ( 'canvas' ) ;
47+ screen . appendChild ( div ) ;
48+ screen . appendChild ( canvas ) ;
49+ screen . id = 'screen' ;
50+ // screen.style.display = 'none';
51+ screen . style . position = 'absolute' ;
52+ screen . style . right = '0' ;
53+ screen . style . bottom = '0' ;
54+ screen . style . opacity = '0.5' ;
55+ document . body . appendChild ( screen ) ;
56+ this . screen = "#screen" ;
57+ }
58+
4259
4360 // window.wanix = {
4461 // config,
You can’t perform that action at this time.
0 commit comments