Show only starred stations in station.html
This commit is contained in:
parent
77a13639c6
commit
347df88226
2 changed files with 3 additions and 8 deletions
|
@ -246,19 +246,14 @@ function csk() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (focusedElement.id === 'stationName') {
|
focusedElement.click()
|
||||||
goToTrain(document.activeElement.value.trim())
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
focusedElement.click()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('load', function (e) {
|
window.addEventListener('load', function (e) {
|
||||||
if (window.localStorage) {
|
if (window.localStorage) {
|
||||||
var maybeStarred = JSON.parse(localStorage.getItem('stations/starred'))
|
var maybeStarred = JSON.parse(localStorage.getItem('stations/starred'))
|
||||||
if (maybeStarred) {
|
if (maybeStarred) {
|
||||||
starred = maybeStarred
|
starred = maybeStarred.filter(function (item) { return item.id })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
sw.js
2
sw.js
|
@ -1,4 +1,4 @@
|
||||||
const VERSION = 'v18'
|
const VERSION = 'v19'
|
||||||
|
|
||||||
const CACHE_FIRST = [
|
const CACHE_FIRST = [
|
||||||
// Root
|
// Root
|
||||||
|
|
Loading…
Add table
Reference in a new issue