@akc42/app-utils 3.6.1 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/debug.js +1 -5
- package/package.json +1 -1
package/debug.js
CHANGED
|
@@ -127,7 +127,7 @@ function Debug(t) {
|
|
|
127
127
|
topic: tl,
|
|
128
128
|
timestamp: new Date().getTime(),
|
|
129
129
|
defined: false, //has the config been defined yet
|
|
130
|
-
debug:
|
|
130
|
+
debug: function (...args) {
|
|
131
131
|
//do time calc before potential delay to see if we are enabled
|
|
132
132
|
const now = new Date().getTime();
|
|
133
133
|
const gap = now - this.timestamp;
|
|
@@ -136,10 +136,6 @@ function Debug(t) {
|
|
|
136
136
|
return `${cum} ${arg}`.trim();
|
|
137
137
|
}, '');
|
|
138
138
|
if (initialised) performance.mark(this.topic, { detail: message }); //save our message locally regardless of if enabled
|
|
139
|
-
if (!this.defined) {
|
|
140
|
-
await config();
|
|
141
|
-
this.defined = true;
|
|
142
|
-
}
|
|
143
139
|
let enabled = false;
|
|
144
140
|
const debugConf = sessionStorage.getItem('debug');
|
|
145
141
|
if (debugConf) {
|