Merge pull request #4241 from alfonso-salces/MOBILE-4704

MOBILE-4704 navigator: Exit from full screen mode while navigate
main
Dani Palou 2024-11-20 09:40:55 +01:00 committed by GitHub
commit 8cc14fc0a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -150,6 +150,13 @@ export class CoreNavigatorService {
? await NavController.navigateRoot(url, navigationOptions)
: await NavController.navigateForward(url, navigationOptions);
// This is done to exit full screen if the user navigate.
if (document.exitFullscreen) {
await CorePromiseUtils.ignoreErrors(document.exitFullscreen());
} else if (document['webkitExitFullscreen']) {
document['webkitExitFullscreen']();
}
if (options.nextNavigation?.path && navigationResult !== false) {
if (options.nextNavigation.isSitePath) {
return this.navigateToSitePath(options.nextNavigation.path, options.nextNavigation.options);