richpixel commented on issue #119:
URL:
https://github.com/apache/cordova-plugin-screen-orientation/issues/119#issuecomment-1580787630
I've been tinkering a little and notice that changing
`screenObject.lock = function (orientation) {`
to
`ScreenOrientation.prototype.lock = function (orientation) {`
fixes the problem of the lock function being undefined. I'm not sure how iOS
versions less than 16.4 will handle this, so more testing needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]