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();