mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
refactor: update to Angular 17
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user