1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Add sandbox controller

This commit is contained in:
tobspr
2020-06-28 12:38:48 +02:00
parent 17123fd7b9
commit 77440a68bc
6 changed files with 194 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ const options = queryString.parse(location.search);
export let queryParamOptions = {
embedProvider: null,
fullVersion: false,
sandboxMode: false,
};
if (options.embed) {
@@ -14,3 +15,8 @@ if (options.embed) {
if (options.fullVersion && !G_IS_RELEASE) {
queryParamOptions.fullVersion = true;
}
// Allow testing full version outside of standalone
if (options.sandboxMode && !G_IS_RELEASE) {
queryParamOptions.sandboxMode = true;
}