mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
Fix code inspections warnings.
This commit is contained in:
parent
80cb75c846
commit
0c90ca4cb8
@ -23,6 +23,7 @@ import MindplotWebComponent from './components/MindplotWebComponent';
|
|||||||
|
|
||||||
console.log('loading static mindmap in read-only');
|
console.log('loading static mindmap in read-only');
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const globalAny: any = global;
|
const globalAny: any = global;
|
||||||
globalAny.jQuery = jquery;
|
globalAny.jQuery = jquery;
|
||||||
|
|
||||||
@ -34,10 +35,6 @@ const persistence: PersistenceManager = new LocalStorageManager(
|
|||||||
`/c/restful/maps/{id}/${historyId}document/xml${!global.isAuth ? '-pub' : ''}`,
|
`/c/restful/maps/{id}/${historyId}document/xml${!global.isAuth ? '-pub' : ''}`,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
// Obtain map zoom from query param if it was specified...
|
|
||||||
const params = new URLSearchParams(window.location.search.substring(1));
|
|
||||||
|
|
||||||
const zoomParam = Number.parseFloat(params.get('zoom'));
|
|
||||||
|
|
||||||
const webComponent: MindplotWebComponent = document.getElementById(
|
const webComponent: MindplotWebComponent = document.getElementById(
|
||||||
'mindmap-comp',
|
'mindmap-comp',
|
||||||
|
@ -67,6 +67,10 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
|||||||
persistence = buildPersistenceManagerForEditor(mode);
|
persistence = buildPersistenceManagerForEditor(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = `${options.mapTitle} | WiseMapping `;
|
||||||
|
}, [loadCompleted]);
|
||||||
|
|
||||||
return loadCompleted ? (
|
return loadCompleted ? (
|
||||||
<IntlProvider
|
<IntlProvider
|
||||||
locale={userLocale.code}
|
locale={userLocale.code}
|
||||||
|
Loading…
Reference in New Issue
Block a user