You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
fix settings link
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user