Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Nov 7, 2023
1 parent 583e15c commit 47930db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/client/vanilla/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import './index.css'
import PoweredBy from './powered'
import Editor from './editor'

const isDev = '_self' in React.createElement('div')

const ContentProvider = ({ data, standaloneServer }) => {
const [templateData, setTemplateData] = useState()

Expand Down Expand Up @@ -34,6 +32,7 @@ const ContentProviderReact = () => {
const [data, setData] = useState()

const loadData = async () => {
const isDev = '_self' in React.createElement('div')
if (isDev) {
setData(undefined)
setLoaded(true)
Expand Down

0 comments on commit 47930db

Please sign in to comment.