Update public/_kleap/kleap-shim.js

This commit is contained in:
kleap-admin 2026-01-18 20:47:46 +00:00
parent 470b5b4870
commit 39af6fdd59
1 changed files with 3 additions and 7 deletions

View File

@ -123,8 +123,7 @@
.then((stackFrames) => {
const sourcemappedStack = stackFrames
.map((sf) => sf.toString())
.join("
");
.join("\n");
const payload = {
message: error?.message || String(error),
@ -149,11 +148,8 @@
message: error?.message || String(error),
// Provide the raw stack or an indication of mapping failure
stack: error?.stack
? `Sourcemapping failed: ${mappingError.message}
--- Raw Stack ---
${error.stack}`
: `Sourcemapping failed: ${mappingError.message}
<no raw stack available>`,
? `Sourcemapping failed: ${mappingError.message}\n--- Raw Stack ---\n${error.stack}`
: `Sourcemapping failed: ${mappingError.message}\n<no raw stack available>`,
};
window.parent.postMessage(