Altro test reload MON

This commit is contained in:
Samuele Locatelli
2024-03-04 16:56:28 +01:00
parent 42d41b69b3
commit 4506bcdcb8
+11 -6
View File
@@ -60,7 +60,7 @@
<script>
Blazor.start({
reconnectionOptions: {
maxRetries: 300,
maxRetries: 600,
retryIntervalMilliseconds: 1000
},
reconnectionHandler: {
@@ -68,7 +68,7 @@
console.error(error);
// setTimeout(function () {
// document.location.reload();
// }, 5000);
// }, 10000);
},
onConnectionUp: () => {
console.log("Client reconnected!");
@@ -76,10 +76,15 @@
}
}
}).then(() => {
Blazor.defaultReconnectionHandler._reconnectCallback = function (d) {
console.log("Client reconnected!");
document.location.reload();
}
// Blazor.defaultReconnectionHandler._reconnectCallback = function (d) {
// console.log("Client reconnected!");
// document.location.reload();
// }
Blazor.defaultReconnectionHandler._reconnectionDisplay = {
show: () => value.show(),
update: (d) => value.update(d),
rejected: (d) => document.location.reload()
};
});
</script>