mitmproxy/web/src/js/app.js

10 lines
330 B
JavaScript
Raw Normal View History

2014-09-17 00:13:37 +00:00
$(function () {
2014-11-27 00:38:30 +00:00
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);
};
2014-09-15 16:08:26 +00:00
});