2 Commits
2.72 ... 2.74

Author SHA1 Message Date
Nic Limper
e079c30c54 version compare bugfix 2024-12-08 20:48:58 +01:00
Nic Limper
eba9f54454 Update update_actions.json 2024-12-08 20:14:00 +01:00
3 changed files with 9 additions and 53 deletions

View File

@@ -10,54 +10,6 @@
"/www/painter.js",
"/www/setup.html",
"/www/setup.js",
"/www/upload-demo.html",
"/fonts/weathericons30.vlw",
"/fonts/weathericons70.vlw",
"/fonts/weathericons78.vlw",
"/fonts/calibrib120.vlw",
"/fonts/calibrib150.vlw",
"/fonts/calibrib50.vlw",
"/fonts/calibrib60.vlw",
"/fonts/BellCent10.vlw",
"/tagtypes/00.json",
"/tagtypes/01.json",
"/tagtypes/02.json",
"/tagtypes/05.json",
"/tagtypes/11.json",
"/tagtypes/21.json",
"/tagtypes/22.json",
"/tagtypes/26.json",
"/tagtypes/27.json",
"/tagtypes/2E.json",
"/tagtypes/2F.json",
"/tagtypes/30.json",
"/tagtypes/31.json",
"/tagtypes/32.json",
"/tagtypes/33.json",
"/tagtypes/34.json",
"/tagtypes/35.json",
"/tagtypes/36.json",
"/tagtypes/40.json",
"/tagtypes/41.json",
"/tagtypes/42.json",
"/tagtypes/43.json",
"/tagtypes/55.json",
"/tagtypes/60.json",
"/tagtypes/61.json",
"/tagtypes/62.json",
"/tagtypes/80.json",
"/tagtypes/81.json",
"/tagtypes/82.json",
"/tagtypes/83.json",
"/tagtypes/B0.json",
"/tagtypes/B1.json",
"/tagtypes/B2.json",
"/tagtypes/B3.json",
"/tagtypes/B5.json",
"/tagtypes/BD.json",
"/tagtypes/BE.json",
"/tagtypes/E0.json",
"/tagtypes/E1.json",
"/tagtypes/F0.json"
"/www/upload-demo.html"
]
}

View File

@@ -6,9 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title>Open EPaper Link Access Point</title>
<script src="main.js" defer></script>
<script src="g5decoder.js?2"></script>
<link rel="stylesheet" href="main.css" type="text/css" />
<script src="main.js?2.74" defer></script>
<script src="g5decoder.js?2.74"></script>
<link rel="stylesheet" href="main.css?2.74" type="text/css" />
<!--<link rel="icon" type="image/vnd.icon" href="favicon.ico">-->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />

View File

@@ -97,7 +97,7 @@ export async function initUpdate() {
} else {
const release = releaseDetails[0];
if (release?.tag_name) {
if (parseInt(release.tag_name) == parseInt(currentVer)) {
if (normalizeVersion(release.tag_name) === normalizeVersion(currentVer)) {
easyupdate.innerHTML = `Version ${currentVer}. You are up to date`;
} else if (release.date < formatEpoch(currentBuildtime - 30 * 60)) {
easyupdate.innerHTML = `Your version is newer than the latest release date.<br>Are you the developer? :-)`;
@@ -638,3 +638,7 @@ async function fetchAndCheckTagtypes(cleanup) {
print("Error: " + error, "red");
}
}
function normalizeVersion(version) {
return version.replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '');
}