aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/global_objects/globalthis/index.html
diff options
context:
space:
mode:
author3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com>2022-02-01 19:42:11 +0900
committerGitHub <noreply@github.com>2022-02-01 19:42:11 +0900
commit4289bf1fbb823f410775b4c7d0533b7abd8e5f5f (patch)
tree624a9bf236fff00b97fc8c61a76b672333303427 /files/ko/web/javascript/reference/global_objects/globalthis/index.html
parent41bbbf1ce8a34763e6ecc099675af29fb5bef62e (diff)
downloadtranslated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.tar.gz
translated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.tar.bz2
translated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.zip
remove class 1 (#3922)
Diffstat (limited to 'files/ko/web/javascript/reference/global_objects/globalthis/index.html')
-rw-r--r--files/ko/web/javascript/reference/global_objects/globalthis/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/ko/web/javascript/reference/global_objects/globalthis/index.html b/files/ko/web/javascript/reference/global_objects/globalthis/index.html
index a06d8520dc..8a46c92c54 100644
--- a/files/ko/web/javascript/reference/global_objects/globalthis/index.html
+++ b/files/ko/web/javascript/reference/global_objects/globalthis/index.html
@@ -37,7 +37,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/globalThis
<p><code>globalThis</code> 없이 현재 환경의 전역 객체를 가져오는 방법 중 유일하게 믿을만한 방법은 <code>Function('return this')()</code> 입니다. 그러나 일부 환경에서는 <a href="/ko/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 () {
+<pre class="brush: js ">var getGlobal = function () {
if (typeof self !== 'undefined') { return self; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
@@ -53,7 +53,7 @@ if (typeof globals.setTimeout !== 'function') {
<p><code>globalThis</code>를 사용할 수 있으면 환경별 전역 객체 검사는 더 이상 필요하지 않습니다.</p>
-<pre class="brush: js notranslate">if (typeof globalThis.setTimeout !== 'function') {
+<pre class="brush: js ">if (typeof globalThis.setTimeout !== 'function') {
// no setTimeout in this environment!
}</pre>