modifica reload x MON, altro metodo
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>6.16.2403.416</Version>
|
||||
<Version>6.16.2403.417</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -58,6 +58,23 @@
|
||||
});
|
||||
</script> *@
|
||||
<script>
|
||||
let timeoutID;
|
||||
function tryReload() {
|
||||
try {
|
||||
timeoutID = setTimeout(function () {
|
||||
document.location.reload();
|
||||
}, 2000);
|
||||
} catch (exceptionVar) {
|
||||
tryReload();
|
||||
} finally {
|
||||
clearMessage();
|
||||
}
|
||||
};
|
||||
|
||||
function clearMessage() {
|
||||
clearTimeout(timeoutID);
|
||||
};
|
||||
|
||||
Blazor.start({
|
||||
reconnectionOptions: {
|
||||
maxRetries: 600,
|
||||
@@ -66,9 +83,10 @@
|
||||
reconnectionHandler: {
|
||||
onConnectionDown: (options, error) => {
|
||||
console.error(error);
|
||||
setTimeout(function () {
|
||||
document.location.reload();
|
||||
}, 10000);
|
||||
// setTimeout(function () {
|
||||
// document.location.reload();
|
||||
// }, 10000);
|
||||
tryReload();
|
||||
},
|
||||
onConnectionUp: () => {
|
||||
console.log("Client reconnected!");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MON MAPO</i>
|
||||
<h4>Versione: 6.16.2403.416</h4>
|
||||
<h4>Versione: 6.16.2403.417</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2403.416
|
||||
6.16.2403.417
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2403.416</version>
|
||||
<version>6.16.2403.417</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/MP.Mon.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user