From cc98fb55ebcb988615155da862c29ef11d0e71eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Tue, 13 Dec 2022 13:23:13 +0300 Subject: [PATCH] Changes for ssr --- app.vue | 2 +- pages/index.vue | 30 ++-- pages/setup/index.vue | 344 +++++++++++++++++++++--------------------- 3 files changed, 190 insertions(+), 186 deletions(-) diff --git a/app.vue b/app.vue index 69f49dfea..ed1b4f3b4 100644 --- a/app.vue +++ b/app.vue @@ -64,7 +64,7 @@ export default { linkElement.remove(); cloneLinkElement.setAttribute('id', elementId); }); - linkElement.parentNode.insertBefore(cloneLinkElement, linkElement.nextSibling); + linkElement.parentNode?.insertBefore(cloneLinkElement, linkElement.nextSibling); this.$appState.theme = event.theme; this.$appState.darkTheme = event.dark; diff --git a/pages/index.vue b/pages/index.vue index 2c2a6d9e8..9eeba06d1 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,19 +1,21 @@