diff --git a/NUXT/layouts/default.vue b/NUXT/layouts/default.vue index 9aa3e5c..29d5b69 100644 --- a/NUXT/layouts/default.vue +++ b/NUXT/layouts/default.vue @@ -106,15 +106,15 @@ export default { mounted() { //--- Load Saved Theme ---// - const theme = localStorage.getItem('darkTheme'); - if (theme != undefined) { - /* - this.$vuetify.theme.themes.dark.accent = '#222', - this.$vuetify.theme.themes.dark.accent2 = '#222', - this.$vuetify.theme.themes.dark.background = '#333' - */ - this.$vuetify.theme.dark = theme; - } + setTimeout(() => { + const theme = Boolean(localStorage.getItem('darkTheme')); + if (theme != undefined) { + this.$vuetify.theme.themes.dark.accent = '#222', + this.$vuetify.theme.themes.dark.accent2 = '#222', + this.$vuetify.theme.themes.dark.background = '#333' + this.$vuetify.theme.dark = theme; + } + }, 1000); //--- Back Button Listener ---// CapacitorApp.addListener('backButton', ({canGoBack}) => { diff --git a/android/app/src/main/assets/capacitor.config.json b/android/app/src/main/assets/capacitor.config.json index 6b6c965..0ad4608 100644 --- a/android/app/src/main/assets/capacitor.config.json +++ b/android/app/src/main/assets/capacitor.config.json @@ -2,5 +2,9 @@ "appId": "com.Frontesque.vuetube", "appName": "VueTube", "webDir": "dist", - "bundledWebRuntime": false + "bundledWebRuntime": false, + "server": { + "hostname": "youtube.com", + "androidScheme": "https" + } } diff --git a/ios/App/App/capacitor.config.json b/ios/App/App/capacitor.config.json index 6b6c965..0ad4608 100644 --- a/ios/App/App/capacitor.config.json +++ b/ios/App/App/capacitor.config.json @@ -2,5 +2,9 @@ "appId": "com.Frontesque.vuetube", "appName": "VueTube", "webDir": "dist", - "bundledWebRuntime": false + "bundledWebRuntime": false, + "server": { + "hostname": "youtube.com", + "androidScheme": "https" + } }