mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
The notification dropdown wasn't fetching events if rootPath used (#3299)
This commit is contained in:
parent
69d1acc797
commit
5ad6d77973
@ -81,8 +81,9 @@
|
||||
<script>
|
||||
if ('WebSocket' in window && window.WebSocket.CLOSING === 2) {
|
||||
const { host, protocol } = window.location;
|
||||
const wsUri = `${protocol === "https:" ? "wss:" : "ws:"}//${host}@_linkGenerator.GetPathByAction("SubscribeUpdates", "Notifications")`;
|
||||
const newDataEndpoint = "@_linkGenerator.GetPathByAction("GetNotificationDropdownUI", "Notifications")";
|
||||
var wsUri = "@_linkGenerator.GetPathByAction("SubscribeUpdates", "Notifications", pathBase: this.Context.Request.PathBase)";
|
||||
wsUri = (protocol === "https:" ? "wss:" : "ws:") + "//" + host + wsUri;
|
||||
const newDataEndpoint = "@_linkGenerator.GetPathByAction("GetNotificationDropdownUI", "Notifications", pathBase: this.Context.Request.PathBase)";
|
||||
try {
|
||||
socket = new WebSocket(wsUri);
|
||||
socket.onmessage = e => {
|
||||
|
Loading…
Reference in New Issue
Block a user