Merge pull request #2142 from dpalou/MOBILE-3199
MOBILE-3199 lti: Launch LTI in browser in desktop
This commit is contained in:
		
						commit
						dc35bc914f
					
				@ -207,7 +207,12 @@ export class AddonModLtiProvider {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // Generate launcher and open it.
 | 
					        // Generate launcher and open it.
 | 
				
			||||||
        return this.generateLauncher(url, params).then((url) => {
 | 
					        return this.generateLauncher(url, params).then((url) => {
 | 
				
			||||||
 | 
					            if (this.appProvider.isMobile()) {
 | 
				
			||||||
                this.utils.openInApp(url);
 | 
					                this.utils.openInApp(url);
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                // In desktop open in browser, we found some cases where inapp caused JS issues.
 | 
				
			||||||
 | 
					                this.utils.openInBrowser(url);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user