mirror of
https://github.com/apache/cordova-android.git
synced 2026-02-21 00:02:46 +08:00
Fixing compass so it actually works
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user