mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix send stacktrack to server
This commit is contained in:
parent
22490b4cd7
commit
1ce10efc53
@ -46,14 +46,15 @@ export function buildDesigner(options: DesignerOptions): Designer {
|
||||
].join(' - ');
|
||||
console.error(message);
|
||||
|
||||
alert(error.stack);
|
||||
// Send error to server ...
|
||||
$.ajax({
|
||||
method: 'post',
|
||||
url: '/c/restful/logger/editor',
|
||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||
data: JSON.stringify({
|
||||
jsErrorMsg: message,
|
||||
jsStack: JSON.stringify(error),
|
||||
jsErrorMsg: `${error.name} - ${error.message}`,
|
||||
jsStack: error.stack,
|
||||
userAgent: navigator.userAgent,
|
||||
mapId: options.mapId,
|
||||
}),
|
||||
|
@ -413,7 +413,7 @@ class XMLSerializerPela implements XMLMindmapSerializer {
|
||||
.forEach((child, index) => {
|
||||
if (child.getOrder() !== index) {
|
||||
child.setOrder(index);
|
||||
console.log('Toppic with order sequence hole. Introducing fix.');
|
||||
console.log('Toppic with order sequence hole. Introducing auto recovery sequence fix.');
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user