From 5ed7f10cd631d892b1b747499f4e977521f37cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Sat, 17 Jun 2017 08:56:39 +0900 Subject: [PATCH] Update boot.js Add note --- src/web/app/boot.js | 6 ++++++ 1 file changed, 6 insertions(+) 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);