mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 18:46:57 +02:00
misc(v2): misc fixes
This commit is contained in:
parent
95b0cb942f
commit
d64581f2b4
9 changed files with 27 additions and 34 deletions
|
@ -13,7 +13,7 @@ import App from './App';
|
|||
import preload from './preload';
|
||||
import routes from '@generated/routes'; // eslint-disable-line
|
||||
|
||||
// Client side render (e.g: running in browser) to become single-page application (SPA)
|
||||
// Client-side render (e.g: running in browser) to become single-page application (SPA).
|
||||
if (typeof window !== 'undefined' && typeof document !== 'undefined') {
|
||||
preload(routes, window.location.pathname).then(() => {
|
||||
ReactDOM.render(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue