diff options
-rw-r--r-- | modules/luci-base/luasrc/view/view.htm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/view.htm b/modules/luci-base/luasrc/view/view.htm index bddd8e4464..9220ecf299 100644 --- a/modules/luci-base/luasrc/view/view.htm +++ b/modules/luci-base/luasrc/view/view.htm @@ -2,7 +2,10 @@ <div id="view"> <div class="spinning"><%:Loading view…%></div> - <script type="text/javascript">L.require('view.<%=view%>');</script> + <script type="text/javascript">L.require('view.<%=view%>').catch(function(err) { + L.dom.content(document.querySelector('#view'), null); + L.error(err); + });</script> </div> <%+footer%> |