Show previous window when current window was closed.
but, window showing causes invalid memory access in termination.
so, prevent window showing during app termination.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/257882/
Change-Id: I7878594d5ba12b5300523e00262ff84d95072ba7
Signed-off-by: SangYong Park <sy302.park@samsung.com>
console.log(`window closed : #${this.windowList.length}`);
let index = this.windowList.indexOf(window);
this.windowList.splice(index, 1);
- if (index === this.windowList.length && this.windowList.length > 0)
+ if (!this.inQuit && index === this.windowList.length && this.windowList.length > 0)
this.windowList[this.windowList.length - 1].show();
});
});