commit eb49d8767f8d8fd25d67bfdd9304fdaf32a1d3fa
parent 9d82d5418a1cb9d2dda6ee0281165154bdb09b5f
Author: Yureka <yuka@yuka.dev>
Date: Wed, 18 Aug 2021 12:09:17 +0200
parent 9d82d5418a1cb9d2dda6ee0281165154bdb09b5f
Author: Yureka <yuka@yuka.dev>
Date: Wed, 18 Aug 2021 12:09:17 +0200
debug
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/client/src/app_functions.js b/client/src/app_functions.js @@ -17,6 +17,8 @@ export const applySettings = async newSettings => { export const addJourneys = async data => { if (!data) return false; + ConsoleLog(data); + const db = await dbReady; await db.put('journeys', data);
diff --git a/client/src/canvas.js b/client/src/canvas.js @@ -1,7 +1,6 @@ import { moreJourneys } from './journeysView.js'; import { go } from './router.js'; - -const padZeroes = (str) => ('00' + str).slice(-2); +import { padZeros } from './helpers.js'; const formatTime = (date) => { return `${padZeroes(date.getHours())}:${padZeroes(date.getMinutes())}`
diff --git a/client/src/helpers.js b/client/src/helpers.js @@ -1,5 +1,3 @@ - - export const ElementById = (id) => { return document.getElementById(id); };