Skip to content

Commit 867ea57

Browse files
committed
1 parent 6435fc0 commit 867ea57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-helmet-async",
3-
"version": "2.0.1-alpha",
3+
"version": "2.0.0-beta",
44
"description": "Thread-safe Helmet for React 16+ and friends",
55
"sideEffects": false,
66
"main": "./lib/index.js",

src/HelmetData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface HelmetDataContext {
1919

2020
export default class HelmetData implements HelmetDataType {
2121
instances = [];
22-
canUseDOM = typeof document !== 'undefined';
22+
canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
2323
context: HelmetDataContext;
2424

2525
value = {

0 commit comments

Comments
 (0)