diff options
Diffstat (limited to 'src/mobile/MobileMain.tsx')
-rw-r--r-- | src/mobile/MobileMain.tsx | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/mobile/MobileMain.tsx b/src/mobile/MobileMain.tsx index 4a1e26078..6cbf86f77 100644 --- a/src/mobile/MobileMain.tsx +++ b/src/mobile/MobileMain.tsx @@ -1,25 +1,26 @@ -import { MobileInterface } from "./MobileInterface"; -import { Docs } from "../client/documents/Documents"; -import { CurrentUserUtils } from "../client/util/CurrentUserUtils"; -import * as ReactDOM from 'react-dom'; import * as React from 'react'; -import { DocServer } from "../client/DocServer"; -import { AssignAllExtensions } from "../extensions/General/Extensions"; +import * as ReactDOM from 'react-dom'; +import { DocServer } from '../client/DocServer'; +import { Docs } from '../client/documents/Documents'; +import { CurrentUserUtils } from '../client/util/CurrentUserUtils'; +import { AssignAllExtensions } from '../extensions/General/Extensions'; +import { MobileInterface } from './MobileInterface'; AssignAllExtensions(); (async () => { const info = await CurrentUserUtils.loadCurrentUser(); - DocServer.init(window.location.protocol, window.location.hostname, 4321, info.email + " (mobile)"); + DocServer.init(window.location.protocol, window.location.hostname, 4321, info.email + ' (mobile)'); await Docs.Prototypes.initialize(); - if (info.id !== "__guest__") { - // a guest will not have an id registered - await CurrentUserUtils.loadUserDocument(info.id); - } - document.getElementById('root')!.addEventListener('wheel', event => { - if (event.ctrlKey) { - event.preventDefault(); - } - }, true); + await CurrentUserUtils.loadUserDocument(info.id); + document.getElementById('root')!.addEventListener( + 'wheel', + event => { + if (event.ctrlKey) { + event.preventDefault(); + } + }, + true + ); ReactDOM.render(<MobileInterface />, document.getElementById('root')); -})();
\ No newline at end of file +})(); |