Skip to content

Commit 5affb25

Browse files
committed
bugfix version checker firefox/chrome
1 parent c0a4a6b commit 5affb25

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

page/sangube.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
resultBox.css("height", 30);
1212
resultBox.css("text-align", "center");
1313

14-
if (lastVersion.text() === sangu_version) {
14+
if (lastVersion.text() === '//<!--@@INCLUDE "version.txt" INDENT=0 //-->') {
1515
resultBox.css("background-color", "green");
1616
resultBox.text("Je hebt de laatste versie!");
1717
} else {

start.user.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
// The not-one-file source code can be found at:
44
// https://github.com/SanguPackage/Script
55

6-
var sangu_version = '//<!--@@INCLUDE "version.txt" INDENT=0 //-->';
7-
86
//<!--@@INCLUDE "greasemonkey/sangu_readyStart.txt" INDENT=0 //-->
97
//var start_time = new Date();
108
//console.time("SanguPackage");
9+
var sangu_version = '//<!--@@INCLUDE "version.txt" INDENT=0 //-->',
1110
/**
1211
* true: popup with crash dump, false: don't show the popup
1312
*/
14-
var sangu_crash = sangu_version.indexOf(".") !== sangu_version.lastIndexOf("."),
13+
sangu_crash = sangu_version.indexOf(".") !== sangu_version.lastIndexOf("."),
1514
/**
1615
* jQuery element of the cell (td) that contains all page specific widgets
1716
*/

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.8.90
1+
4.8.91

0 commit comments

Comments
 (0)