Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cordova-plugin-background-geolocation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Aksimaya
cordova-plugin-background-geolocation
Commits
c5a1bf52
Commit
c5a1bf52
authored
Jan 23, 2014
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for some settings to be 0
parent
5c08e446
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
BackgroundGeoLocation.js
www/BackgroundGeoLocation.js
+6
-9
No files found.
www/BackgroundGeoLocation.js
View file @
c5a1bf52
...
@@ -26,11 +26,11 @@ var exec = require("cordova/exec");
...
@@ -26,11 +26,11 @@ var exec = require("cordova/exec");
module
.
exports
=
{
module
.
exports
=
{
configure
:
function
(
success
,
failure
,
config
)
{
configure
:
function
(
success
,
failure
,
config
)
{
var
authToken
=
config
.
auth_token
||
'
BackgroundGeoLocation_auth_token
'
,
var
authToken
=
config
.
auth_token
||
'
BackgroundGeoLocation_auth_token
'
,
url
=
config
.
url
||
'
BackgroundGeoLocation_url
'
,
url
=
config
.
url
||
'
BackgroundGeoLocation_url
'
,
stationaryRadius
=
config
.
stationaryRadius
||
50
,
// meters
stationaryRadius
=
(
config
.
stationaryRadius
>=
0
)
?
config
.
stationaryRadius
:
50
,
// meters
distanceFilter
=
config
.
distanceFilter
||
500
,
// meters
distanceFilter
=
(
config
.
distanceFilter
>=
0
)
?
config
.
distanceFilter
:
500
,
// meters
locationTimeout
=
config
.
locationTimeout
||
60
,
// seconds
locationTimeout
=
(
config
.
locationTimeout
>=
0
)
?
config
.
locationTimeout
:
60
,
// seconds
desiredAccuracy
=
config
.
desiredAccuracy
||
100
;
// meters
desiredAccuracy
=
(
config
.
desiredAccuracy
>=
0
)
?
config
.
desiredAccuracy
:
100
;
// meters
exec
(
success
||
function
()
{},
exec
(
success
||
function
()
{},
failure
||
function
()
{},
failure
||
function
()
{},
...
@@ -79,7 +79,4 @@ module.exports = {
...
@@ -79,7 +79,4 @@ module.exports = {
'
setConfig
'
,
'
setConfig
'
,
[
config
]);
[
config
]);
}
}
};
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment