mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
screen orientation changed from cordova to capacitor
This commit is contained in:
@@ -50,9 +50,9 @@ export class AppComponent {
|
||||
/* this.splashScreen.hide(); */
|
||||
|
||||
if (this.platform.is("tablet")) {
|
||||
this.screenOrientation.unlock();
|
||||
window.screen.orientation.unlock();
|
||||
} else if( this.platform.is("mobile")) {
|
||||
this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT_PRIMARY);
|
||||
window.screen.orientation.lock('portrait');
|
||||
console.log('Orientation locked')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user