mitmproxy/web/src/js/app.js
Maximilian Hils 38bf34ebd9 web++
2014-11-27 01:38:30 +01:00

10 lines
330 B
JavaScript

$(function () {
ReactRouter.run(routes, function (Handler) {
React.render(<Handler/>, document.body);
});
var UpdateConnection = new Connection("/updates");
UpdateConnection.onmessage = function (message) {
var m = JSON.parse(message.data);
AppDispatcher.dispatchServerAction(m);
};
});