diff --git a/packages/vue/lib/Giscus.tsx b/packages/vue/lib/Giscus.tsx index f7bf610e..22d3f1ba 100644 --- a/packages/vue/lib/Giscus.tsx +++ b/packages/vue/lib/Giscus.tsx @@ -72,7 +72,7 @@ const Giscus = defineComponent({ } else if (savedSession) { try { session.value = JSON.parse(savedSession || '') || '' - } catch (e) { + } catch (e: any) { session.value = '' localStorage.removeItem(GISCUS_SESSION_KEY) console.warn(`${formatError(e?.message)} Session has been cleared.`) @@ -93,7 +93,6 @@ const Giscus = defineComponent({ onMounted(() => { if (!iframe.value) return iframe.value = iframe.value as HTMLIFrameElement - iframe.value.src = src.value iframe.value.addEventListener('load', () => iFrameResizer.iframeResizer( { checkOrigin: [GISCUS_ORIGIN] }, @@ -112,6 +111,7 @@ const Giscus = defineComponent({