@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
23 lines (22 loc) • 560 B
JavaScript
;
export class CoreFeaturesController {
static urlParams() {
return new URLSearchParams(globalThis.location.search);
}
static urlParam(paramName) {
return this.urlParams().get(paramName);
}
static noAssemblers() {
return this.urlParam("noassemblers") == "1";
}
static debugLoadProgress() {
return this.urlParam("debugLoadProgress") == "1";
}
static testBatchId() {
const testBatchIdStr = this.urlParam("testBatchId");
if (testBatchIdStr) {
return parseInt(testBatchIdStr);
}
return -1;
}
}