Altro metodo reload 1 sola volta
This commit is contained in:
+12
-12
@@ -66,9 +66,9 @@
|
||||
reconnectionHandler: {
|
||||
onConnectionDown: (options, error) => {
|
||||
console.error(error);
|
||||
// setTimeout(function () {
|
||||
// document.location.reload();
|
||||
// }, 10000);
|
||||
setTimeout(function () {
|
||||
document.location.reload();
|
||||
}, 10000);
|
||||
},
|
||||
onConnectionUp: () => {
|
||||
console.log("Client reconnected!");
|
||||
@@ -76,15 +76,15 @@
|
||||
}
|
||||
}
|
||||
}).then(() => {
|
||||
// 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()
|
||||
};
|
||||
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user