forked from FoundKeyGang/FoundKey
Update boot.js
This commit is contained in:
parent
c9fea5a7a0
commit
feec35bf4f
1 changed files with 84 additions and 80 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
// ブロックの中に入れないと、定義した変数がブラウザのグローバルスコープに登録されてしまい邪魔
|
||||
{
|
||||
//#region Script
|
||||
|
||||
//#region Detect language
|
||||
|
@ -94,6 +96,7 @@ if (useSystemFont) {
|
|||
document.documentElement.classList.add('useSystemFont');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-inner-declarations
|
||||
function refresh() {
|
||||
// Random
|
||||
localStorage.setItem('salt', Math.random().toString().substr(2, 8));
|
||||
|
@ -110,3 +113,4 @@ function refresh() {
|
|||
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue