Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/core/darkconsole/behavior-dark-console.js
| Show First 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | JX.Stratcom.listen('click', 'dark-console-realtime-action', function(e) { | ||||
| var action = data.action; | var action = data.action; | ||||
| switch (action) { | switch (action) { | ||||
| case 'reconnect': | case 'reconnect': | ||||
| var ws = JX.Aphlict.getInstance().getWebsocket(); | var ws = JX.Aphlict.getInstance().getWebsocket(); | ||||
| if (ws) { | if (ws) { | ||||
| ws.reconnect(); | ws.reconnect(); | ||||
| } | } | ||||
| break; | break; | ||||
| case 'replay': | |||||
| JX.Aphlict.getInstance().replay(); | |||||
| break; | |||||
| } | } | ||||
| }); | }); | ||||
| } | } | ||||
| }); | }); | ||||