diff --git a/src/app/system-apps/filemanager/filemanager.component.ts b/src/app/system-apps/filemanager/filemanager.component.ts index 7e04d6ed..3b4b9063 100644 --- a/src/app/system-apps/filemanager/filemanager.component.ts +++ b/src/app/system-apps/filemanager/filemanager.component.ts @@ -62,7 +62,7 @@ export class FilemanagerComponent implements OnInit, AfterViewInit, OnDestroy { if(filePaths != null || filePaths != undefined){ for(const filePath of filePaths){ //console.log('revoking url:',filePath.getIcon); //TBD - //URL.revokeObjectURL(filePath.getIcon); + URL.revokeObjectURL(filePath.getIcon); } } }, 5000); diff --git a/src/app/user-apps/jsdos/jsdos.component.html b/src/app/user-apps/jsdos/jsdos.component.html index 00738027..8a35e49c 100644 --- a/src/app/user-apps/jsdos/jsdos.component.html +++ b/src/app/user-apps/jsdos/jsdos.component.html @@ -13,6 +13,6 @@ -
+
\ No newline at end of file diff --git a/src/app/user-apps/jsdos/jsdos.component.ts b/src/app/user-apps/jsdos/jsdos.component.ts index 363ddbf7..12415e04 100644 --- a/src/app/user-apps/jsdos/jsdos.component.ts +++ b/src/app/user-apps/jsdos/jsdos.component.ts @@ -61,24 +61,16 @@ export class JsdosComponent implements BaseComponent, OnInit, OnDestroy, AfterVi setTimeout( async () => { emulators.pathPrefix= '/'; - console.log('fileInfo in Js-DOS:',this._fileInfo) //TBD - - // eslint-disable-next-line prefer-const - let data = await this._fileService.getFileAsync(this._fileInfo.getDataPath); - //let data = await this._fileService.getFileAsync('/osdrive/games/data/3d_duke.jsdos'); - //console.log('data:',data) //TBD - - - - this._ci = await Dos(this.dosWindow.nativeElement, this.dosOptions).run(data); - }, 3000); - - // const data = await this._fileService.getFileAsync('/osdrive/games/data/3d_duke.jsdos'); - // const ci = await Dos(this.dosWindow.nativeElement, this.dosOptions).run(data); - // Revoke url - // setTimeout(()=> { - // URL.revokeObjectURL('/osdrive/games/data/3d_duke.jsdos'); - // }, 5000); + //console.log('fileInfo in Js-DOS:',this._fileInfo) //TBD + //let data = await this._fileService.getFileAsync('/osdrive/games/data/3d_duke.jsdos'); + + const data = await this._fileService.getFileAsync(this._fileInfo.getDataPath); + this._ci = await Dos(this.dosWindow.nativeElement, this.dosOptions).run(data); + + URL.revokeObjectURL(this._fileInfo.getDataPath); + + }, 1500); + }