modifica reload x MON, altro metodo

This commit is contained in:
Samuele Locatelli
2024-03-04 17:16:20 +01:00
parent ccb5af08fa
commit 294c4373e0
5 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -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>
+21 -3
View File
@@ -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 -1
View File
@@ -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
View File
@@ -1 +1 @@
6.16.2403.416
6.16.2403.417
+1 -1
View File
@@ -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>