Skip to content

Commit 5325f88

Browse files
authored
Set latest version to 1.20 in shreddedpaper download.html
1 parent 3b35634 commit 5325f88

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

shreddedpaper/download.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,16 @@ <h1>ShreddedPaper Downloads</h1>
8282
.join(' | ');
8383
document.querySelector('main').appendChild(p);
8484

85-
if (selectedVersion != latestVersion) {
85+
if (selectedVersion < latestVersion) {
8686
const error = document.createElement('p');
8787
error.innerHTML = 'Warning: These versions are outdated and may not contain the latest security and stability features.<br/>No support will be given for these builds.';
8888
error.style.color = 'red';
8989
document.querySelector('main').appendChild(error);
90+
} else if (selectedVersion > latestVersion) {
91+
const error = document.createElement('p');
92+
error.innerHTML = 'Warning: These are development builds! Do not dare try using in production!!!<br/>Please report any bugs you find on the <a href="https://github.com/MultiPaper/ShreddedPaper/issues/">GitHub</a>.';
93+
error.style.color = 'red';
94+
document.querySelector('main').appendChild(error);
9095
} else {
9196
const error = document.createElement('p');
9297
error.innerHTML = 'Warning: These builds may contain occasional bugs and glitches. Test thoroughly before use in production.<br/>Please report any bugs you find on the <a href="https://github.com/MultiPaper/ShreddedPaper/issues/">GitHub</a>.';
@@ -151,7 +156,7 @@ <h1>ShreddedPaper Downloads</h1>
151156
const fetchVersions = async (url) => {
152157
const data = await (await fetch(url)).json();
153158

154-
const lastestVersion = data.version_groups[data.version_groups.length - 1];
159+
const lastestVersion = '1.20'; // data.version_groups[data.version_groups.length - 1]; // TODO REMOVE HARD CODED LATEST VERSION
155160
let versionGroup;
156161
if (location.search.length && ~data.version_groups.indexOf(location.search.substr(1))) {
157162
versionGroup = location.search.substr(1);

0 commit comments

Comments
 (0)