mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Ipad 6 fix scandit
This commit is contained in:
@@ -18,7 +18,7 @@ export class NativeScanAdapter implements ScanAdapter {
|
||||
|
||||
isReady(): boolean {
|
||||
// TODO: Fix Login Keycard Dauerschleife
|
||||
return this.nativeContainerService.isUiWebview().isNative || this.nativeContainerService.isIpadMini6();
|
||||
return this.nativeContainerService.isUiWebview().isNative;
|
||||
// return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@ export class IsAuthenticatedGuard implements CanActivate {
|
||||
const authenticated = await this._authService.isAuthenticated();
|
||||
|
||||
if (!authenticated) {
|
||||
const token = await this.scanAndGetToken();
|
||||
// const token = await this.scanAndGetToken();
|
||||
|
||||
if (token) {
|
||||
this._authService.setKeyCardToken(token);
|
||||
}
|
||||
// if (token) {
|
||||
// this._authService.setKeyCardToken(token);
|
||||
// }
|
||||
|
||||
this._authService.login();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user