2021-01-26 22:57:25 +08:00
|
|
|
|
(function () {
|
|
|
|
|
try {
|
|
|
|
|
var req = JSON.parse(decodeURIComponent(window.location.hash.substring(1)));
|
|
|
|
|
var theme = req.theme;
|
|
|
|
|
var os = req.themeOS;
|
|
|
|
|
window.CryptPad_theme = theme || os;
|
|
|
|
|
if ((theme || os) === 'dark') {
|
|
|
|
|
var s = document.createElement('style');
|
|
|
|
|
s.innerHTML = 'body { background: black; }';
|
|
|
|
|
document.body.appendChild(s);
|
|
|
|
|
}
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
|
})();
|
|
|
|
|
|
2018-04-19 20:21:26 +08:00
|
|
|
|
require(['/customize/loading.js'], function (Loading) {
|
|
|
|
|
Loading();
|
2017-08-30 00:15:40 +08:00
|
|
|
|
});
|