Sun, 11 Apr 2021 10:09:44 +0200
Removed websocket debug info from the mainmenu
www/includes/global.inc.php | file | annotate | diff | comparison | revisions | |
www/js/global.js | file | annotate | diff | comparison | revisions |
--- a/www/includes/global.inc.php Sat Apr 10 16:36:05 2021 +0200 +++ b/www/includes/global.inc.php Sun Apr 11 10:09:44 2021 +0200 @@ -1,6 +1,6 @@ <?php /***************************************************************************** - * Copyright (C) 2014-2019 + * Copyright (C) 2014-2021 * * Michiel Broek <mbroek at mbse dot eu> * @@ -282,7 +282,6 @@ <li><img style='float: left; margin-right: 5px;' src='images/help-about.png' /><a href="gen_about.php">Informatie</a></li> </ul> </li> - <li style='width: 400px;'><div id="wsstatus"></div></li> </ul> </div> <!-- End menu -->
--- a/www/js/global.js Sat Apr 10 16:36:05 2021 +0200 +++ b/www/js/global.js Sun Apr 11 10:09:44 2021 +0200 @@ -1,9 +1,9 @@ /***************************************************************************** - * Copyright (C) 2014-2020 + * Copyright (C) 2014-2021 * * Michiel Broek <mbroek at mbse dot eu> * - * This file is part of BrewCloud + * This file is part of BMS * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -773,17 +773,8 @@ /* Websocket interface. Place "websocket.onmessage = function(evt) {}" in the user script. */ var websocket = new ReconnectingWebSocket('ws://'+location.hostname+'/ws'); -websocket.onopen = function(evt) { - $('#wsstatus').html('WebSocket open'); -} - -websocket.onclose = function(evt) { - $('#wsstatus').html('WebSocket closed'); -} - websocket.onerror = function(event) { console.log('Websocket error: ' + event.data); - $('#wsstatus').html('WebSocket error: ' + event.data); } $(document).ready(function() {