diff --git a/app/appListeners.js b/app/appListeners.js index eb8ba20..8c5094d 100644 --- a/app/appListeners.js +++ b/app/appListeners.js @@ -12,12 +12,6 @@ export const appListeners = (app, state, emitter) => { } }); - emitter.on('change-view', newView => { - // Change the view and call render. Makes it easier to call within views. - state.currentView = newView; - emitter.emit('render', () => { }); - }); - emitter.on('set-language', newLanguage => { app.setSettingsItem('lang', newLanguage); state.language = newLanguage; diff --git a/app/appState.js b/app/appState.js index 609fc22..9dfcfee 100644 --- a/app/appState.js +++ b/app/appState.js @@ -8,7 +8,6 @@ export const appState = (app, state, emitter) => { }); } else { // Default state variables - state.currentView = 'home'; state.language = app.getSettingsItem('lang') ? app.getSettingsItem('lang') : (navigator.language || navigator.userLanguage).split('-')[0]; state.viewStates = {}; state.isLoggedIn = false;