added motion detection
This commit is contained in:
parent
bb0d027bc6
commit
4d2e0e97e0
@ -11,7 +11,7 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
const CACHE_VERSION = { 'version': '0.0.973' };
|
||||
const CACHE_VERSION = { 'version': '0.0.974' };
|
||||
const PRECACHE = `jubileeData-${CACHE_VERSION.version}`;
|
||||
const RUNTIME = 'runtime';
|
||||
|
||||
|
@ -122,7 +122,7 @@ const LocationModel = Backbone.Model.extend({
|
||||
};
|
||||
|
||||
const updatelocationthrottled = _.throttle(updateLocation, 120000);
|
||||
const updateMotionhrottled = _.throttle(updateLocation, 15000);
|
||||
const updateMotionhrottled = _.throttle(updateMotion, 15000);
|
||||
|
||||
geolocation.on('change', function (position) {
|
||||
console.log('Location update');
|
||||
|
Loading…
Reference in New Issue
Block a user