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