feat(runner): add showControl for easy debugging
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
const params = new URLSearchParams(window.location.search);
|
const params = new URLSearchParams(window.location.search);
|
||||||
|
var showControls;
|
||||||
|
if (params.has("showControls")) {
|
||||||
|
showControls = true;
|
||||||
|
} else {
|
||||||
|
showControls = false;
|
||||||
|
}
|
||||||
|
|
||||||
function supportsWebGL() {
|
function supportsWebGL() {
|
||||||
try {
|
try {
|
||||||
@@ -50,7 +56,7 @@ if (!supportsWebGL()) {
|
|||||||
alpha: true,
|
alpha: true,
|
||||||
backgroundColor: "#00000000",
|
backgroundColor: "#00000000",
|
||||||
viewport: window.operatorSettings.viewport,
|
viewport: window.operatorSettings.viewport,
|
||||||
showControls: false,
|
showControls: showControls,
|
||||||
fps: window.operatorSettings.fps,
|
fps: window.operatorSettings.fps,
|
||||||
defaultMix: window.operatorSettings.defaultMix,
|
defaultMix: window.operatorSettings.defaultMix,
|
||||||
success: function (e) {
|
success: function (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user