mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 23:42:53 +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) {
|
Compass.prototype.getCurrentHeading = function(successCallback, errorCallback, options) {
|
||||||
if (this.lastHeading == null) {
|
if (this.lastHeading == null) {
|
||||||
this.start(options);
|
CompassHook.start();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (typeof successCallback == "function") {
|
if (typeof successCallback == "function") {
|
||||||
|
Loading…
Reference in New Issue
Block a user