Make JS a bit simpler
[plack-app-gruntmaster.git] / js / 95-login.js
index aad77d370682a1ad5b47eef8a9ec7f80f59197d0..6036aef912343ba1049dc0795ca6ba8b845b25c0 100644 (file)
@@ -1,5 +1,5 @@
 $(function(){
-       const sidebar = $('#sidebar')[0];
+       const sidebar = q('#sidebar');
        const login = document.createElement('div');
        login.innerHTML = '<a role="button" id="login" class="show">Log in</a>';
        sidebar.insertBefore(login, sidebar.firstChild);
This page took 0.009134 seconds and 4 git commands to generate.