From 0d218fa25d8d715da93a9fc1976b45dfcb372572 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 27 Oct 2024 11:23:17 +0100 Subject: [PATCH] log: remove log from font --- src/hooks/useFile.hook.ts | 1 + src/utils/downloadGoogleFont.ts | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hooks/useFile.hook.ts b/src/hooks/useFile.hook.ts index 3299bd7..e93b7b1 100644 --- a/src/hooks/useFile.hook.ts +++ b/src/hooks/useFile.hook.ts @@ -40,6 +40,7 @@ export const useFile = (sha: Ref | string, retrieveContent = true) => { } const getCachedFileContent = async (): Promise => { + debugger const cachedNote = await getCachedNote() fromCache.value = !!cachedNote diff --git a/src/utils/downloadGoogleFont.ts b/src/utils/downloadGoogleFont.ts index 119aad0..88130cb 100644 --- a/src/utils/downloadGoogleFont.ts +++ b/src/utils/downloadGoogleFont.ts @@ -6,8 +6,6 @@ export const downloadGoogleFont = async (font: string): Promise => { // check if the href already exists const existingLink = document.querySelector(`link[href="${href}"]`) - console.log({ existingLink }) - if (!existingLink) { const link = document.createElement('link') link.href = href