summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorこぴなたみぽ <Syuilotan@yahoo.co.jp>2017-06-17 08:56:39 +0900
committerこぴなたみぽ <Syuilotan@yahoo.co.jp>2017-06-17 08:56:39 +0900
commit5ed7f10cd631d892b1b747499f4e977521f37cf6 (patch)
treea02a711824e293c5e5737cd460b28e757bd7d8c8 /src/web
parentMerge pull request #561 from Petitsurume/patch-1 (diff)
downloadmisskey-5ed7f10cd631d892b1b747499f4e977521f37cf6.tar.gz
misskey-5ed7f10cd631d892b1b747499f4e977521f37cf6.tar.bz2
misskey-5ed7f10cd631d892b1b747499f4e977521f37cf6.zip
Update boot.js
Add note
Diffstat (limited to 'src/web')
-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);