some fixes
This commit is contained in:
parent
41de9e60c4
commit
4269188c8c
@ -17,6 +17,6 @@
|
|||||||
@section Scripts
|
@section Scripts
|
||||||
{
|
{
|
||||||
<script>
|
<script>
|
||||||
noteName = '@Model.CurrentNote';
|
var noteName = '@Model.CurrentNote';
|
||||||
</script>
|
</script>
|
||||||
}
|
}
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
<body>
|
<body>
|
||||||
@RenderBody()
|
@RenderBody()
|
||||||
|
|
||||||
|
@RenderSection("scripts", false)
|
||||||
|
|
||||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||||
<script src="~/lib/signalr/dist/browser/signalr.min.js"></script>
|
<script src="~/lib/signalr/dist/browser/signalr.min.js"></script>
|
||||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||||
|
|
||||||
@RenderSection("scripts", false)
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
let noteName = '';//document.location.pathname.substring(1);
|
let connection = new signalR.HubConnectionBuilder()
|
||||||
|
|
||||||
let connection = new signalR.HubConnectionBuilder()
|
|
||||||
.withAutomaticReconnect()
|
.withAutomaticReconnect()
|
||||||
.withUrl(`/noteHub?noteName=${noteName}`)
|
.withUrl(`/noteHub?noteName=${noteName}`)
|
||||||
.build();
|
.build();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user