diff --git a/debian/control b/debian/control index 6801a41a5..f05ca8b2f 100644 --- a/debian/control +++ b/debian/control @@ -101,7 +101,6 @@ Depends: libglib2.0-bin, libjs-bootstrap4, libjs-jquery, - libjs-modernizr, lsof, netcat-openbsd, network-manager, diff --git a/plinth/templates/base.html b/plinth/templates/base.html index e86199692..3bc8e83a5 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -7,7 +7,7 @@ {% endcomment %} - + @@ -54,8 +54,6 @@ - - diff --git a/static/jslicense.html b/static/jslicense.html index 22a9808fc..00ffac34e 100644 --- a/static/jslicense.html +++ b/static/jslicense.html @@ -25,13 +25,6 @@ twitter-bootstap3 - - - modernizr.min.js - Expat - - modernizr - jsxc-plinth.js diff --git a/static/themes/default/js/main.js b/static/themes/default/js/main.js index 412ad493a..eaeb86b03 100644 --- a/static/themes/default/js/main.js +++ b/static/themes/default/js/main.js @@ -22,6 +22,17 @@ for the JavaScript code in this page. */ +/* + * Remove the 'no-js' class from the element. CSS utilizing this can + * create different rules when Javascript is available and when it is not. This + * functionality was provided by the Modernizr library earlier. + */ +document.addEventListener('DOMContentLoaded', function(event) { + const html = document.querySelector('html'); + html.classList.remove('no-js'); + html.classList.add('js'); +}); + /* * Refresh page if marked for refresh. */