mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Fixing compass so it actually works
This commit is contained in:
parent
bde54704d3
commit
e5f03b6aed
@ -25,7 +25,7 @@ function Compass() {
|
||||
*/
|
||||
Compass.prototype.getCurrentHeading = function(successCallback, errorCallback, options) {
|
||||
if (this.lastHeading == null) {
|
||||
this.start(options);
|
||||
CompassHook.start();
|
||||
}
|
||||
else
|
||||
if (typeof successCallback == "function") {
|
||||
|
Loading…
Reference in New Issue
Block a user