mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 16:29:47 +02:00
docs(v2): fix typo in ExecutionEnvironment example
This commit is contained in:
parent
c97fd9f1d7
commit
3e43955df6
6 changed files with 6 additions and 6 deletions
|
@ -191,7 +191,7 @@ import React from 'react';
|
|||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||
|
||||
function MyPage() {
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.href.location : null;
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.location.href : null;
|
||||
return <div>{location}</div>;
|
||||
}
|
||||
```
|
||||
|
|
|
@ -175,7 +175,7 @@ import React from 'react';
|
|||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||
|
||||
function MyPage() {
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.href.location : null;
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.location.href : null;
|
||||
return <div>{location}</div>;
|
||||
}
|
||||
```
|
||||
|
|
|
@ -193,7 +193,7 @@ import React from 'react';
|
|||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||
|
||||
function MyPage() {
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.href.location : null;
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.location.href : null;
|
||||
return <div>{location}</div>;
|
||||
}
|
||||
```
|
||||
|
|
|
@ -184,7 +184,7 @@ import React from 'react';
|
|||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||
|
||||
function MyPage() {
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.href.location : null;
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.location.href : null;
|
||||
return <div>{location}</div>;
|
||||
}
|
||||
```
|
||||
|
|
|
@ -184,7 +184,7 @@ import React from 'react';
|
|||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||
|
||||
function MyPage() {
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.href.location : null;
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.location.href : null;
|
||||
return <div>{location}</div>;
|
||||
}
|
||||
```
|
||||
|
|
|
@ -184,7 +184,7 @@ import React from 'react';
|
|||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||
|
||||
function MyPage() {
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.href.location : null;
|
||||
const location = ExecutionEnvironment.canUseDOM ? window.location.href : null;
|
||||
return <div>{location}</div>;
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue