diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-09-16 23:57:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-16 23:57:54 +0900 |
| commit | d9247fba6815cc11d44e0c7c59c69157c830c467 (patch) | |
| tree | 7abc2a636b4b639d57e1ff601de1adebec6c14c3 /files/ja/web/javascript/reference/global_objects/globalthis/index.html | |
| parent | e921a9c17cc7c93b3418de230602d8e0dd20041b (diff) | |
| download | translated-content-d9247fba6815cc11d44e0c7c59c69157c830c467.tar.gz translated-content-d9247fba6815cc11d44e0c7c59c69157c830c467.tar.bz2 translated-content-d9247fba6815cc11d44e0c7c59c69157c830c467.zip | |
Web/JavaScript 以下の文書内のリンクURLを正規化 (#2354)
- /en-US へのリンクを /ja へのリンクに修正
- /ja が付いていないものに /ja を付加
- MDN内のリンクが完全URLの場合、 /ja/docs からのURLに修正
Diffstat (limited to 'files/ja/web/javascript/reference/global_objects/globalthis/index.html')
| -rw-r--r-- | files/ja/web/javascript/reference/global_objects/globalthis/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ja/web/javascript/reference/global_objects/globalthis/index.html b/files/ja/web/javascript/reference/global_objects/globalthis/index.html index 5d5eb8fab4..fa1017e013 100644 --- a/files/ja/web/javascript/reference/global_objects/globalthis/index.html +++ b/files/ja/web/javascript/reference/global_objects/globalthis/index.html @@ -39,7 +39,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/globalThis <h3 id="Search_for_the_global_across_environments" name="Search_for_the_global_across_environments">異なる環境間でグローバルの検索</h3> -<p><code>globalThis</code> 以前は、その環境のグローバルオブジェクトを取得する信頼性の高い方法は <code>Function('return this')()</code> だけでした。ただし、これは設定によっては <a href="/en-US/docs/Web/HTTP/CSP">CSP</a> 違反が発生するため、<a href="https://github.com/paulmillr/es6-shim">es6-shim</a> では次のようなチェックを使用します。</p> +<p><code>globalThis</code> 以前は、その環境のグローバルオブジェクトを取得する信頼性の高い方法は <code>Function('return this')()</code> だけでした。ただし、これは設定によっては <a href="/ja/docs/Web/HTTP/CSP">CSP</a> 違反が発生するため、<a href="https://github.com/paulmillr/es6-shim">es6-shim</a> では次のようなチェックを使用します。</p> <pre class="brush: js notranslate">var getGlobal = function () { if (typeof self !== 'undefined') { return self; } |
