Update public/_kleap/kleap-shim.js
This commit is contained in:
parent
1479489b8d
commit
45df71d16c
|
|
@ -123,8 +123,7 @@
|
||||||
.then((stackFrames) => {
|
.then((stackFrames) => {
|
||||||
const sourcemappedStack = stackFrames
|
const sourcemappedStack = stackFrames
|
||||||
.map((sf) => sf.toString())
|
.map((sf) => sf.toString())
|
||||||
.join("
|
.join("\n");
|
||||||
");
|
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
message: error?.message || String(error),
|
message: error?.message || String(error),
|
||||||
|
|
@ -149,11 +148,8 @@
|
||||||
message: error?.message || String(error),
|
message: error?.message || String(error),
|
||||||
// Provide the raw stack or an indication of mapping failure
|
// Provide the raw stack or an indication of mapping failure
|
||||||
stack: error?.stack
|
stack: error?.stack
|
||||||
? `Sourcemapping failed: ${mappingError.message}
|
? `Sourcemapping failed: ${mappingError.message}\n--- Raw Stack ---\n${error.stack}`
|
||||||
--- Raw Stack ---
|
: `Sourcemapping failed: ${mappingError.message}\n<no raw stack available>`,
|
||||||
${error.stack}`
|
|
||||||
: `Sourcemapping failed: ${mappingError.message}
|
|
||||||
<no raw stack available>`,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
window.parent.postMessage(
|
window.parent.postMessage(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue