mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-02-23 16:42:50 +08:00
iOS JS: removed additional variable
This commit is contained in:
parent
1ca9e4e6e0
commit
61cd864608
@ -31,7 +31,6 @@ module.exports = screenOrientation;
|
||||
|
||||
// ios orientation callback/hook
|
||||
window.shouldRotateToOrientation = function(orientation) {
|
||||
var currOrientation = iosOrientation,
|
||||
map = orientationMap[currOrientation] || orientationMap['default'];
|
||||
var map = orientationMap[iosOrientation] || orientationMap['default'];
|
||||
return map.indexOf(orientation) >= 0;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user