Onionr/static-data/www/shared/sidebar/sidebar.js

19 lines
442 B
JavaScript
Raw Normal View History

2020-08-05 03:35:45 +00:00
fetch('/shared/sidebar/sidebar.html', {
"method": "get",
headers: {
"token": webpass
}})
.then((resp) => resp.text())
.then(function(resp) {
document.getElementById('sidebarContainer').innerHTML = resp
})
window.addEventListener("keydown", function(event) {
if (event.key === "s"){
let quickviews = bulmaQuickview.attach()
document.getElementsByClassName('sidebarBtn')[0].click()
}
}, true)