Hi guys!

I'm trying to lock the screen orientation for all my app. Then I add at the beginning of my code these lines:

var portraitLock = screen.mozLockOrientation("portrait"); if (portraitLock) {
   console.log("Orientation locked to portrait");
}

It doesn't work and I don't have any idea what I'm doing wrong then I'm asking you for any advice.
Thanks in advance.

Regards, Mar
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to