diff --git a/station.js b/station.js index 258f641..3599066 100755 --- a/station.js +++ b/station.js @@ -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 }) } } diff --git a/sw.js b/sw.js index 45fa087..181625a 100755 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -const VERSION = 'v18' +const VERSION = 'v19' const CACHE_FIRST = [ // Root