refactor: update to Angular 17

This commit is contained in:
2023-11-08 15:44:00 +01:00
parent 6dc01b538c
commit d3fe9a2f85
28 changed files with 2494 additions and 1561 deletions

View File

@@ -15,9 +15,10 @@ export class FullScreenImageDirective {
await this.host.nativeElement.requestFullscreen();
if (
Math.sign(screen.width - screen.height) ===
Math.sign(this.host.nativeElement.width - this.host.nativeElement.height)
Math.sign(this.host.nativeElement.width - this.host.nativeElement.height) &&
'lock' in screen.orientation
) {
await screen.orientation.lock('landscape');
await (screen.orientation as {lock(orientation: string): Promise<void>}).lock('landscape');
}
}
}