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 Translator from 'Common/Translator'; import {AbstractBoot} from 'Knoin/AbstractBoot'; class AbstractApp extends AbstractBoot { googlePreviewSupportedCache = null; isLocalAutocomplete = true; iframe = null; lastErrorTime = 0; /** * @param {RemoteStorage|AdminRemoteStorage} Remote */ constructor(Remote) { super(); this.iframe = $('