summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js4
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 1bf668782..1b654d7bc 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;