// Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/bower_components/nthen/index.js', '/api/config', '/common/requireconfig.js', '/customize/messages.js', 'jquery', ], function (nThen, ApiConfig, RequireConfig, Messages, $) { var common = {}; common.initIframe = function (waitFor, isRt, pathname) { var requireConfig = RequireConfig(); var lang = Messages._languageUsed; var themeKey = 'CRYPTPAD_STORE|colortheme'; var req = { cfg: requireConfig, req: [ '/common/loading.js' ], pfx: window.location.origin, theme: localStorage[themeKey], themeOS: localStorage[themeKey+'_default'], lang: lang }; window.rc = requireConfig; window.apiconf = ApiConfig; var hash, href; if (isRt) { // Hidden hash hash = window.location.hash; href = window.location.href; if (window.history && window.history.replaceState && hash) { window.history.replaceState({}, window.document.title, '#'); } } var $i = $('