File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
frontend/src/app/features/webnode Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,18 @@ export class WebnodeComponent extends StoreDispatcher implements OnInit {
3333
3434 private listenToRoute ( ) : void {
3535 this . select ( getMergedRoute , ( route : MergedRoute ) => {
36- const initial = Number ( route . queryParams [ 'initial' ] ) ;
37- const maximum = Number ( route . queryParams [ 'maximum' ] ) ;
38- const shared = route . queryParams [ 'shared' ] === 'true' ;
36+ let initial = 174 ;
37+ if ( route . queryParams [ 'initial' ] ) {
38+ initial = Number ( route . queryParams [ 'initial' ] ) ;
39+ }
40+ let maximum = 65536 ;
41+ if ( route . queryParams [ 'maximum' ] ) {
42+ maximum = Number ( route . queryParams [ 'maximum' ] ) ;
43+ }
44+ let shared = true ;
45+ if ( route . queryParams [ 'shared' ] ) {
46+ shared = route . queryParams [ 'shared' ] === 'true' ;
47+ }
3948 this . webNodeService . memory = new WebAssembly . Memory ( { initial, maximum, shared } ) ;
4049 } , filter ( Boolean ) ) ;
4150 }
You can’t perform that action at this time.
0 commit comments