don't consider localhost as PRODUCTION

This commit is contained in:
Azgaar 2021-09-12 00:16:29 +03:00
parent 055c55b731
commit f07cbe9323
6 changed files with 7 additions and 10 deletions

View file

@ -6,7 +6,7 @@ const version = "1.661"; // generator version
document.title += " v" + version;
// Switches to disable/enable logging features
const PRODUCTION = window.location.host;
const PRODUCTION = location.hostname && location.hostname !== "localhost" && location.hostname !== "127.0.0.1";
const DEBUG = localStorage.getItem("debug");
const INFO = DEBUG || !PRODUCTION;
const TIME = DEBUG || !PRODUCTION;