Fix code inspections warnings.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-08 14:21:03 -07:00
parent 80cb75c846
commit 0c90ca4cb8
2 changed files with 5 additions and 4 deletions

View File

@ -23,6 +23,7 @@ import MindplotWebComponent from './components/MindplotWebComponent';
console.log('loading static mindmap in read-only');
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const globalAny: any = global;
globalAny.jQuery = jquery;
@ -34,10 +35,6 @@ const persistence: PersistenceManager = new LocalStorageManager(
`/c/restful/maps/{id}/${historyId}document/xml${!global.isAuth ? '-pub' : ''}`,
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(
'mindmap-comp',

View File

@ -67,6 +67,10 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
persistence = buildPersistenceManagerForEditor(mode);
}
useEffect(() => {
document.title = `${options.mapTitle} | WiseMapping `;
}, [loadCompleted]);
return loadCompleted ? (
<IntlProvider
locale={userLocale.code}