File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,9 +66,7 @@ const CodeBlock = (props) => {
6666}
6767
6868module . exports = CodeBlock
69-
70- if ( typeof window === 'undefined' ) {
71- } else {
69+ if ( typeof window !== 'undefined' ) {
7270 const componentContainers = document . querySelectorAll ( '.react-component-CodeBlock' )
7371
7472 for ( const componentContainer of componentContainers ) {
Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ const CodeEditor = (props) => {
2626 )
2727}
2828
29- if ( typeof window === 'undefined' ) {
30- } else {
29+ if ( typeof window !== 'undefined' ) {
3130 const componentContainers = document . querySelectorAll ( '.react-component-CodeEditor' )
3231
3332 for ( const componentContainer of componentContainers ) {
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ const CoolTable = function () {
2727 )
2828}
2929
30- if ( typeof window === 'undefined' ) {
31- } else {
30+ if ( typeof window !== 'undefined' ) {
3231 const componentContainers = document . querySelectorAll ( '.react-component-CoolTable' )
3332
3433 for ( const componentContainer of componentContainers ) {
You can’t perform that action at this time.
0 commit comments