From 4269188c8c08d76523d7b78781a48cb4d34456b3 Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Fri, 5 Jan 2024 13:46:01 -0500 Subject: [PATCH] some fixes --- Views/Note/Index.cshtml | 2 +- Views/Shared/_Layout.cshtml | 3 ++- wwwroot/js/site.js | 4 +--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Views/Note/Index.cshtml b/Views/Note/Index.cshtml index f2a71f9..bda3c3f 100644 --- a/Views/Note/Index.cshtml +++ b/Views/Note/Index.cshtml @@ -17,6 +17,6 @@ @section Scripts { } diff --git a/Views/Shared/_Layout.cshtml b/Views/Shared/_Layout.cshtml index 40d1bb9..cd24bb5 100644 --- a/Views/Shared/_Layout.cshtml +++ b/Views/Shared/_Layout.cshtml @@ -11,11 +11,12 @@ @RenderBody() + @RenderSection("scripts", false) + - @RenderSection("scripts", false) diff --git a/wwwroot/js/site.js b/wwwroot/js/site.js index ddeaa87..0cc05d1 100644 --- a/wwwroot/js/site.js +++ b/wwwroot/js/site.js @@ -1,6 +1,4 @@ -let noteName = '';//document.location.pathname.substring(1); - -let connection = new signalR.HubConnectionBuilder() +let connection = new signalR.HubConnectionBuilder() .withAutomaticReconnect() .withUrl(`/noteHub?noteName=${noteName}`) .build();