mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Log catch errors as console.error
This commit is contained in:
parent
8cb9b910f2
commit
dd180cf0b7
@ -44,7 +44,7 @@ export function buildDesigner(options: DesignerOptions): Designer {
|
|||||||
`Line: ${lineNo}`,
|
`Line: ${lineNo}`,
|
||||||
`Column: ${columnNo}`,
|
`Column: ${columnNo}`,
|
||||||
].join(' - ');
|
].join(' - ');
|
||||||
console.log(message);
|
console.error(message);
|
||||||
|
|
||||||
// Send error to server ...
|
// Send error to server ...
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -58,7 +58,6 @@ export function buildDesigner(options: DesignerOptions): Designer {
|
|||||||
mapId: options.mapId,
|
mapId: options.mapId,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Open error dialog only in case of mindmap loading errors. The rest of the error are reported but not display the dialog.
|
// Open error dialog only in case of mindmap loading errors. The rest of the error are reported but not display the dialog.
|
||||||
// Remove this in the near future.
|
// Remove this in the near future.
|
||||||
if (!globalThis.mindmapLoadReady) {
|
if (!globalThis.mindmapLoadReady) {
|
||||||
|
@ -14,7 +14,6 @@ const EditorPage = ({ mapId, ...props }: EditorPropsType): React.ReactElement =>
|
|||||||
|
|
||||||
// Load user locale ...
|
// Load user locale ...
|
||||||
const userLocale = AppI18n.getUserLocale();
|
const userLocale = AppI18n.getUserLocale();
|
||||||
console.log("Locale:" + userLocale.code);
|
|
||||||
|
|
||||||
return <>
|
return <>
|
||||||
<Editor {...props} onAction={setActiveDialog} locale={userLocale.code} />
|
<Editor {...props} onAction={setActiveDialog} locale={userLocale.code} />
|
||||||
|
Loading…
Reference in New Issue
Block a user