mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
23 lines
566 B
JavaScript
23 lines
566 B
JavaScript
const queryString = require("query-string");
|
|
const options = queryString.parse(location.search);
|
|
|
|
export let queryParamOptions = {
|
|
embedProvider: null,
|
|
fullVersion: false,
|
|
sandboxMode: false,
|
|
};
|
|
|
|
if (options.embed) {
|
|
queryParamOptions.embedProvider = options.embed;
|
|
}
|
|
|
|
// Allow testing full version outside of standalone
|
|
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;
|
|
}
|