pastebin/js/views/config-link.ts

9 lines
258 B
TypeScript
Raw Normal View History

2019-10-09 14:47:08 +00:00
export default function addOptionsLink() {
const li = document.createElement('li')
const a = document.createElement('a')
a.textContent = 'Config'
a.href = '/config'
li.append(a)
2019-11-27 18:16:03 +00:00
document.querySelector('#menu-buttons ul').append(li)
2019-10-09 14:47:08 +00:00
}