Skip to content
Snippets Groups Projects
Commit 4b2f097f authored by Jonas Zohren's avatar Jonas Zohren
Browse files

Expose more constants via envs

parent 63b7b5a8
No related branches found
No related tags found
No related merge requests found
Pipeline #6367 passed with warnings
...@@ -3,9 +3,16 @@ const sleep = require("sleep-promise"); ...@@ -3,9 +3,16 @@ const sleep = require("sleep-promise");
const { clearInterval } = require("timers"); const { clearInterval } = require("timers");
const fs = require("fs"); const fs = require("fs");
const HEADLESS = true; const HEADLESS =
const SCREENSHOT_INTERVAL_MS = 3000; process.env.HEADLESS !== undefined ? process.env.HEADLESS : true;
const USERINFO_INTERVAL_MS = 2000; const SCREENSHOT_INTERVAL_MS =
process.env.SCREENSHOT_INTERVAL_MS !== undefined
? process.env.SCREENSHOT_INTERVAL_MS
: 3000;
const USERINFO_INTERVAL_MS =
process.env.USERINFO_INTERVAL_MS !== undefined
? process.env.USERINFO_INTERVAL_MS
: 2000;
// global state variables, because they are great // global state variables, because they are great
var stateRoomUrl = null; var stateRoomUrl = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment