chore: implement removeApplication
This commit is contained in:
@@ -152,6 +152,10 @@ export class WebApplication extends SNApplication implements WebApplicationInter
|
||||
override deinit(mode: DeinitMode, source: DeinitSource): void {
|
||||
super.deinit(mode, source)
|
||||
|
||||
if (!this.isNativeMobileWeb()) {
|
||||
this.webOrDesktopDevice().removeApplication(this)
|
||||
}
|
||||
|
||||
try {
|
||||
for (const service of Object.values(this.webServices)) {
|
||||
if (!service) {
|
||||
@@ -278,6 +282,10 @@ export class WebApplication extends SNApplication implements WebApplicationInter
|
||||
return this.deviceInterface as MobileDeviceInterface
|
||||
}
|
||||
|
||||
webOrDesktopDevice(): WebOrDesktopDevice {
|
||||
return this.deviceInterface as WebOrDesktopDevice
|
||||
}
|
||||
|
||||
public getThemeService() {
|
||||
return this.webServices.themeService
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user