summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/app/boot.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index fc0bea53be..24f74d5fb3 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -11,6 +11,12 @@
'use strict';
+// Chromeで確認したことなのですが、constやletを用いたとしても
+// グローバルなスコープで定数/変数を定義するとwindowのプロパティ
+// としてそれがアクセスできるようになる訳ではありませんが、普通に
+// コンソールから定数/変数名を入力するとアクセスできてしまいます。
+// ブロックに入れてスコープをグローバルでなくするとそれが防げます
+// (Chrome以外のブラウザでは検証していません)
{
// Get the current url information
const url = new URL(location.href);