mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-24 00:31:33 +00:00
10 lines
330 B
JavaScript
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);
|
|
};
|
|
}); |