forked from CIT/Vmeda.Online
		
	MOBILE-4704 navigator: Exit from full screen mode while navigate
This commit is contained in:
		
							parent
							
								
									024346aff9
								
							
						
					
					
						commit
						b091b90ee1
					
				@ -150,6 +150,13 @@ export class CoreNavigatorService {
 | 
				
			|||||||
            ? await NavController.navigateRoot(url, navigationOptions)
 | 
					            ? await NavController.navigateRoot(url, navigationOptions)
 | 
				
			||||||
            : await NavController.navigateForward(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?.path && navigationResult !== false) {
 | 
				
			||||||
            if (options.nextNavigation.isSitePath) {
 | 
					            if (options.nextNavigation.isSitePath) {
 | 
				
			||||||
                return this.navigateToSitePath(options.nextNavigation.path, options.nextNavigation.options);
 | 
					                return this.navigateToSitePath(options.nextNavigation.path, options.nextNavigation.options);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user