You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
filepizza/lib/client.js

18 lines
539 B
JavaScript

import React from 'react'
import ReactRouter from 'react-router'
import routes from './routes'
import alt from './alt'
import webrtcSupport from 'webrtcsupport'
import SupportActions from './actions/SupportActions'
let bootstrap = document.documentElement.getAttribute('data-bootstrap')
alt.bootstrap(bootstrap)
window.FilePizza = () => {
ReactRouter.run(routes, ReactRouter.HistoryLocation, function (Handler) {
React.render(<Handler data={bootstrap} />, document)
})
if (!webrtcSupport.support) SupportActions.noSupport()
}