diff options
-rw-r--r-- | applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js index 1bf6687822..1b654d7bca 100644 --- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js +++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js @@ -50,8 +50,8 @@ return view.extend({ loadOUI: function() { var url = 'https://raw.githubusercontent.com/jow-/oui-database/master/oui.json'; - return L.resolveDefault(request.get(url, { cache: true }), []).then(function(res) { - res = res.json(); + return L.resolveDefault(request.get(url, { cache: true })).then(function(res) { + res = res ? res.json() : []; if (Array.isArray(res)) ouiData = res; |