fix settings link

This commit is contained in:
Henrique Dias committed 2016-07-01 16:10:47 +01:00
1 parent 6b87fc2485
commit 489db64055
3 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
'use strict';
document.addEventListener('DOMContentLoaded', event => {
document.getElementById('logout').insertAdjacentHTML('beforebegin', `<a href="/admin/settings/">
let link = document.querySelector('header > div:first-child a:first-child').getAttribute('href') + "/settings/"
document.getElementById('logout').insertAdjacentHTML('beforebegin', `<a href="${link}">
<div class="action">
<i class="material-icons">settings</i>
</div>