Update boot.js

This commit is contained in:
syuilo 2020-12-26 10:58:59 +09:00
parent c9fea5a7a0
commit feec35bf4f
1 changed files with 84 additions and 80 deletions

View File

@ -10,6 +10,8 @@
'use strict'; 'use strict';
// ブロックの中に入れないと、定義した変数がブラウザのグローバルスコープに登録されてしまい邪魔
{
//#region Script //#region Script
//#region Detect language //#region Detect language
@ -94,6 +96,7 @@ if (useSystemFont) {
document.documentElement.classList.add('useSystemFont'); document.documentElement.classList.add('useSystemFont');
} }
// eslint-disable-next-line no-inner-declarations
function refresh() { function refresh() {
// Random // Random
localStorage.setItem('salt', Math.random().toString().substr(2, 8)); localStorage.setItem('salt', Math.random().toString().substr(2, 8));
@ -110,3 +113,4 @@ function refresh() {
location.reload(); location.reload();
} }
}