From 65b44cd8c94858f04df4390f8b62a18d5a94c4f4 Mon Sep 17 00:00:00 2001 From: choelzl Date: Fri, 16 Jul 2021 23:03:06 +0200 Subject: [PATCH] cleanup --- public/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 0ba573f..eb58f5a 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -78,14 +78,14 @@ const app = new Vue({ el: '#app', data: { journey_id : window.location.pathname.split('/').pop() || gen_id(16), - journey_step: window.location.hash.slice(1)==""?((window.location.pathname.split('/').at(1)=='view')?0:-1):parseInt(window.location.hash.slice(1)), + journey_step: window.location.hash.slice(1)==""?((window.location.pathname.split('/')[1]=='view')?0:-1):parseInt(window.location.hash.slice(1)), journey_step_data: {day:-1, section:-1}, journey_data : { name: "New Journey", main:[], step_title:[], }, - view: window.location.pathname.split('/').at(1)=='view', + view: window.location.pathname.split('/')[1]=='view', query:{hotel:[],flight:[],nominatim:[]}, querying:{hotel:false,flight:false,place:false,food:false}, impexp:"",