diff --git a/public/js/main.js b/public/js/main.js index 472a021..15c8c4c 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -78,15 +78,15 @@ Vue.component('multiselect', window.VueMultiselect.default) const app = new Vue({ el: '#app', data: { - journey_id : (window.location.pathname + '').split('/').at(-1) || 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_id : window.location.pathname.toString().split('/').at(-1) || gen_id(16), + journey_step: window.location.hash.slice(1)==""?((window.location.pathname.toString().split('/').at(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.toString().split('/').at(1)=='view', query:{hotel:[],flight:[],nominatim:[]}, querying:{hotel:false,flight:false,place:false,food:false}, impexp:"",