Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
var OrientationLock = function() {}
|
||||
|
||||
OrientationLock.prototype.lock = function(orientation, success, fail) {
|
||||
return cordova.exec(success, fail, "OrientationLock", "lock", [orientation])
|
||||
}
|
||||
|
||||
OrientationLock.prototype.unlock = function(success, fail) {
|
||||
return cordova.exec(success, fail, "OrientationLock", "unlock", [])
|
||||
}
|
||||
|
||||
if ( ! window.plugins ) {
|
||||
window.plugins = {}
|
||||
}
|
||||
if ( ! window.plugins.orientationLock ) {
|
||||
window.plugins.orientationLock = new OrientationLock()
|
||||
}
|
||||
|
||||
module.exports = OrientationLock
|
||||
Reference in New Issue
Block a user