From 5b69edf80bf613317e9f523dc98e8274f34a9170 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Thu, 15 Dec 2022 16:44:32 +0100 Subject: [PATCH] fix refresh loop issue :bug: (#4) --- client/generators/layout.fsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/generators/layout.fsx b/client/generators/layout.fsx index 494ca7f..de5ae1e 100644 --- a/client/generators/layout.fsx +++ b/client/generators/layout.fsx @@ -106,10 +106,11 @@ open Docsloader open Fornax let render (ctx : SiteContents) cnt = - let disableLiveRefresh = ctx.TryGetValue () |> Option.map (fun n -> n.disableLiveRefresh) |> Option.defaultValue false cnt |> HtmlElement.ToString - |> fun n -> if disableLiveRefresh then n else injectWebsocketCode n + #if WATCH + |> injectWebsocketCode + #endif let docsLayout (docs: Nfdi4Plants.Docs) = // just an example url