feat: display beta warning on desktop

This commit is contained in:
Baptiste Grob
2020-10-20 16:53:49 +02:00
parent a5860ff293
commit ee563cd09b
9 changed files with 119 additions and 29 deletions

View File

@@ -81,12 +81,11 @@ export class WebApplication extends SNApplication {
/** @override */
deinit(source: DeinitSource) {
for (const key of Object.keys(this.webServices)) {
const service = (this.webServices as any)[key];
if (service.deinit) {
service.deinit();
for (const service of Object.values(this.webServices)) {
if ('deinit' in service) {
service.deinit?.(source);
}
service.application = undefined;
(service as any).application = undefined;
}
this.webServices = {} as WebServices;
(this.$compile as any) = undefined;