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
|
||||
}
|
||||
|
||||
if (focusedElement.id === 'stationName') {
|
||||
goToTrain(document.activeElement.value.trim())
|
||||
}
|
||||
else {
|
||||
focusedElement.click()
|
||||
}
|
||||
focusedElement.click()
|
||||
}
|
||||
|
||||
window.addEventListener('load', function (e) {
|
||||
if (window.localStorage) {
|
||||
var maybeStarred = JSON.parse(localStorage.getItem('stations/starred'))
|
||||
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 = [
|
||||
// Root
|
||||
|
|
Loading…
Add table
Reference in a new issue