From f9b92d6026a09ba7fadc185fa21363b79d34e02a Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sun, 5 Sep 2021 17:59:39 +0530 Subject: [PATCH] hide netlify on github --- src/lib/components/actions.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/actions.svelte b/src/lib/components/actions.svelte index 2eb32e80..25abae7e 100644 --- a/src/lib/components/actions.svelte +++ b/src/lib/components/actions.svelte @@ -134,7 +134,7 @@ let userimagesize = 1080; let isNetlify = false; - if (browser && window.location.host.includes('mermaid.live')) { + if (browser && ['mermaid.live', 'netlify'].some((path) => window.location.host.includes(path))) { isNetlify = true; } codeStore.subscribe((state: State) => {