Render App in iframe
This commit is contained in:
18
src/js/popup.js
Normal file
18
src/js/popup.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import App from './components/App'
|
||||
import queryString from 'query-string'
|
||||
import { parseProps } from 'utils'
|
||||
import '../css/popup.scss'
|
||||
|
||||
const parsedProps = parseProps(
|
||||
['service', 'projects', 'lastProjectId', 'lastTaskId']
|
||||
)(queryString.parse(location.search))
|
||||
|
||||
ReactDOM.render(
|
||||
<App
|
||||
{...parsedProps}
|
||||
browser={chrome}
|
||||
/>,
|
||||
document.querySelector('#moco-bx-root')
|
||||
)
|
||||
Reference in New Issue
Block a user