import {window, _, $, key} from 'common'; import { $win, $html, $doc, startMicrotime, leftPanelDisabled, leftPanelType, sUserAgent, bMobileDevice, bAnimationSupported } from 'Common/Globals'; import {KeyState} from 'Common/Enums'; import {noop, isNormal, pString, inArray, microtime, timestamp, detectDropdownVisibility, windowResizeCallback} from 'Common/Utils'; import * as Links from 'Common/Links'; import * as Settings from 'Storage/Settings'; import * as Events from 'Common/Events'; import {initOnStartOrLangChange, initNotificationLanguage} from 'Common/Translator'; import {AbstractBoot} from 'Knoin/AbstractBoot'; class AbstractApp extends AbstractBoot { /** * @constructor * @param {RemoteStorage|AdminRemoteStorage} Remote */ constructor(Remote) { super(); this.googlePreviewSupportedCache = null; this.isLocalAutocomplete = true; this.iframe = null; this.lastErrorTime = 0; this.iframe = $('