mirror of https://github.com/kern/filepizza
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.
23 lines
708 B
JavaScript
23 lines
708 B
JavaScript
import "babel-polyfill";
|
|
import "./index.styl";
|
|
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.getElementById("bootstrap").innerHTML;
|
|
alt.bootstrap(bootstrap);
|
|
|
|
window.FilePizza = () => {
|
|
ReactRouter.run(routes, ReactRouter.HistoryLocation, function(Handler) {
|
|
React.render(<Handler data={bootstrap} />, document);
|
|
});
|
|
|
|
if (!webrtcSupport.support) SupportActions.noSupport();
|
|
|
|
let isChrome = navigator.userAgent.toLowerCase().indexOf("chrome") > -1;
|
|
if (isChrome) SupportActions.isChrome();
|
|
};
|