remove unused codes and update
This commit is contained in:
@@ -37,8 +37,11 @@ export class PosMainMenuSidebarComponent extends AbstractDialog {
|
||||
.then((res) => res.json())
|
||||
.then((data: { appData?: { appVersion?: string } }) => {
|
||||
this.appVersion = data?.appData?.appVersion || this.appVersion;
|
||||
console.log('appVersion:', data?.appData);
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch((err) => {
|
||||
console.log('err', err);
|
||||
});
|
||||
|
||||
this.swUpdate.versionUpdates
|
||||
.pipe(filter((event): event is VersionReadyEvent => event.type === 'VERSION_READY'))
|
||||
|
||||
Reference in New Issue
Block a user