🔧 Revert to old debug method behavior

This commit is contained in:
Simon Schneegans
2023-08-19 07:21:46 +02:00
parent c515e495f3
commit 44ce1a4825
+5 -1
View File
@@ -28,7 +28,11 @@ export function debug(message) {
// Remove debug() function call from stack.
stack.shift();
log('[' + stack[0] + '] ' + message);
// Find the index of the extension directory in the stack entry. We do not want to
// print the entire absolute file path.
const extensionRoot = stack[0].indexOf('burn-my-windows@schneegans.github.com');
log('[' + stack[0].slice(extensionRoot) + '] ' + message);
}
// Reads the contents of a file contained in the global resources archive. The data