1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-09-24 21:04:57 +00:00

Adjustments to support chinese versions

This commit is contained in:
Tobias Springer
2021-03-09 10:07:19 +01:00
parent e53ec8d6af
commit 1ee03d7398
24 changed files with 422 additions and 294 deletions

View File

@@ -16,12 +16,15 @@ module.exports = ({
standalone = false,
isBrowser = true,
mobileApp = false,
chineseVersion = false,
}) => {
const globalDefs = {
assert: enableAssert ? "window.assert" : "false && window.assert",
assertAlways: "window.assert",
abstract: "window.assert(false, 'abstract method called');",
G_IS_DEV: "false",
G_CHINA_VERSION: JSON.stringify(chineseVersion),
G_IS_RELEASE: environment === "prod" ? "true" : "false",
G_IS_STANDALONE: standalone ? "true" : "false",
G_IS_BROWSER: isBrowser ? "true" : "false",