Remove unused currentView state variable

This commit is contained in:
Robbie Antenesse 2019-09-25 14:07:41 -06:00
parent b093595f1d
commit 192a78188c
2 changed files with 0 additions and 7 deletions

View File

@ -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;

View File

@ -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;