Skip to content
This repository was archived by the owner on Oct 5, 2024. It is now read-only.

Commit b2b124f

Browse files
Steven YehSteven Yeh
authored andcommitted
use modern js let
1 parent 1c88048 commit b2b124f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/openrct2.website.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var openrct2 = {};
1+
let openrct2 = {};
22

33
openrct2.Platform = Object.freeze({
44
UNKNOWN: {},
@@ -30,7 +30,7 @@ openrct2.Platform = Object.freeze({
3030

3131
function getPlatform() {
3232
if (navigator.platform.indexOf('Win') >= 0) {
33-
if (navigator.userAgent.indexOf("WOW64") === -1 && navigator.userAgent.indexOf("Win64") === -1 ) {
33+
if (navigator.userAgent.indexOf("WOW64") === -1 && navigator.userAgent.indexOf("Win64") === -1) {
3434
return openrct2.Platform.WINDOWS32;
3535
} else {
3636
return openrct2.Platform.WINDOWS64; // 64-bit is the default as it is by far the most common these days

0 commit comments

Comments
 (0)