fix at initial start undefined app name
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Dark } from 'quasar';
|
||||
import type { Settings } from 'src/vueLib/models/settings';
|
||||
import { appName, databaseName, type Settings } from 'src/vueLib/models/settings';
|
||||
import { updateOrAddObject } from 'src/vueLib/utils/utils';
|
||||
import { ref } from 'vue';
|
||||
|
||||
@@ -16,8 +16,8 @@ export function setLocalSettings(settings: Settings) {
|
||||
export function getLocalSettings(): Settings {
|
||||
return <Settings>{
|
||||
icon: localStorage.getItem('icon'),
|
||||
appName: localStorage.getItem('appName'),
|
||||
databaseName: localStorage.getItem('databaseName'),
|
||||
appName: localStorage.getItem('appName') || appName.value,
|
||||
databaseName: localStorage.getItem('databaseName') || databaseName.value,
|
||||
primaryColor: localStorage.getItem('primaryColor'),
|
||||
primaryColorText: localStorage.getItem('primaryColorText'),
|
||||
secondaryColor: localStorage.getItem('secondaryColor'),
|
||||
|
||||
Reference in New Issue
Block a user