HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/apklausos/assets/packages/lslog/src/lslog.js
/**
 * Check the browsers console capabilities and bundle them into general functions
 * If the build environment was "production" only put out error messages.
 */
import "core-js/features/symbol";
import "core-js/features/array";
import ConsoleShim from "../../meta/lib/ConsoleShim";

window.ConsoleShim = ConsoleShim;

if(window.debugState.backend || window.debugState.frontend){
    const globalLSConsole = new ConsoleShim('LSLOG');
    window.console.ls = globalLSConsole;
} else {
    const globalLSConsole = new ConsoleShim('LSLOG', true);
    window.console.ls = globalLSConsole;
}