mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +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}`,
|
||||
`Column: ${columnNo}`,
|
||||
].join(' - ');
|
||||
console.log(message);
|
||||
console.error(message);
|
||||
|
||||
// Send error to server ...
|
||||
$.ajax({
|
||||
@ -58,7 +58,6 @@ export function buildDesigner(options: DesignerOptions): Designer {
|
||||
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.
|
||||
// Remove this in the near future.
|
||||
if (!globalThis.mindmapLoadReady) {
|
||||
|
@ -14,7 +14,6 @@ const EditorPage = ({ mapId, ...props }: EditorPropsType): React.ReactElement =>
|
||||
|
||||
// Load user locale ...
|
||||
const userLocale = AppI18n.getUserLocale();
|
||||
console.log("Locale:" + userLocale.code);
|
||||
|
||||
return <>
|
||||
<Editor {...props} onAction={setActiveDialog} locale={userLocale.code} />
|
||||
|
Loading…
Reference in New Issue
Block a user