Update public/_kleap/kleap-shim.js
This commit is contained in:
parent
1479489b8d
commit
45df71d16c
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue