This commit is contained in:
syuilo 2018-04-21 16:18:58 +09:00
parent b77a8af6e3
commit 6119312a74
1 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,11 @@
// ブロック内に入れてスコープを非グローバル化するとそれが防げます
// (Chrome以外のブラウザでは検証していません)
{
if (localStorage.getItem('shouldFlush') == 'true') refresh();
// キャッシュ削除要求があれば従う
if (localStorage.getItem('shouldFlush') == 'true') {
refresh();
return;
}
// Get the current url information
const url = new URL(location.href);