luci-mod-network: remove debug code from iface_status.js
authorJo-Philipp Wich <jo@mein.io>
Sat, 24 Nov 2018 20:32:33 +0000 (21:32 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 24 Nov 2018 20:32:33 +0000 (21:32 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/iface_status.js

index 1852f179fd19f5094fbd6514ef661c88ba0ca5f3..88f48d189aa8cfd4cfc9f78f62186fae09e15090 100644 (file)
@@ -6,10 +6,8 @@ requestAnimationFrame(function() {
 
                L.poll(5, L.url('admin/network/iface_status', network), null, function(xhr, ifaces) {
                        var ifc = Array.isArray(ifaces) ? ifaces[0] : null;
-                       if (!ifc) {
-                               alert('No ifc!');
+                       if (!ifc)
                                return;
-                       }
 
                        L.itemlist(info, [
                                _('Device'),  ifc.ifname,