breautek commented on issue #35: URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/35#issuecomment-658536587
From what I can gather, it appears that chrome has never supported `screen.orientation.lock`, but at some point they added the function, that raises an exception when used. (Maybe it's only supported on specific devices?) https://github.com/apache/cordova-plugin-screen-orientation/blob/3c08d393ffe0df5fa16f7fcbab06c22648dcc3ed/www/screenorientation.js#L57-L59 These lines above checks for existing of the native api and uses it if available, then it looks like it falls back to a custom solution if not. I haven't tested this, but perhaps we can force use the fallback. The issue was raised back in 2017, but remained unresolved and archived (with no attached reason) in 2018. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
