From 9e204efbd0de9874ba7369c3edcce1d0c90e52c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 7 Jul 2023 13:33:10 +0200 Subject: [PATCH] fix: only load if document present --- website/global.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/global.js b/website/global.js index 8a4cb027ea..83b88ed833 100644 --- a/website/global.js +++ b/website/global.js @@ -1 +1,4 @@ -!function(){var e,t,n;e="5fe670e3422303a",t=function(){Reo.init({clientID:"5fe670e3422303a"})},(n=document.createElement("script")).src="https://static.reo.dev/"+e+"/reo.js",n.async=!0,n.onload=t,document.head.appendChild(n)}(); +if(document) { + !function(){var e,t,n;e="5fe670e3422303a",t=function(){Reo.init({clientID:"5fe670e3422303a"})},(n=document.createElement("script")).src="https://static.reo.dev/"+e+"/reo.js",n.async=!0,n.onload=t,document.head.appendChild(n)}(); +} +