mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 23:54:55 +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(' - ');
|
].join(' - ');
|
||||||
console.error(message);
|
console.error(message);
|
||||||
|
|
||||||
|
alert(error.stack);
|
||||||
// Send error to server ...
|
// Send error to server ...
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: '/c/restful/logger/editor',
|
url: '/c/restful/logger/editor',
|
||||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
jsErrorMsg: message,
|
jsErrorMsg: `${error.name} - ${error.message}`,
|
||||||
jsStack: JSON.stringify(error),
|
jsStack: error.stack,
|
||||||
userAgent: navigator.userAgent,
|
userAgent: navigator.userAgent,
|
||||||
mapId: options.mapId,
|
mapId: options.mapId,
|
||||||
}),
|
}),
|
||||||
|
@ -413,7 +413,7 @@ class XMLSerializerPela implements XMLMindmapSerializer {
|
|||||||
.forEach((child, index) => {
|
.forEach((child, index) => {
|
||||||
if (child.getOrder() !== index) {
|
if (child.getOrder() !== index) {
|
||||||
child.setOrder(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