diff --git a/contributors.yml b/contributors.yml index d6eb1cffb59..a39591cc515 100644 --- a/contributors.yml +++ b/contributors.yml @@ -71,6 +71,7 @@ - atesgoral - athongsavath - AustinGil +- avindra - awthwathje - axel-habermaier - baby230211 diff --git a/docs/guides/gotchas.md b/docs/guides/gotchas.md index 2e7ae4b208c..f27730ca5fb 100644 --- a/docs/guides/gotchas.md +++ b/docs/guides/gotchas.md @@ -20,7 +20,7 @@ if (typeof window === "undefined") { } ``` -This works fine in a Node.js environment, however, Deno actually supports `window`! So if you really want to check whether you're running in the browser, it's better to check for `document` instead: +This works fine in a Node.js environment, however, some environments might actually support `window` (like Deno v1), so if you really want to check whether you're running in the browser, it's better to check for `document` instead: ```ts good if (typeof document === "undefined") {