mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-19 02:59:02 +00:00
Hide button on initialization if top distance is set
This commit is contained in:
parent
f6bdd473b1
commit
2d6141115d
@ -56,6 +56,9 @@ module.exports = {
|
||||
$container.append($scroll);
|
||||
$container.append($help);
|
||||
|
||||
if (store().top > 0)
|
||||
$scroll.classList.add('hidden');
|
||||
|
||||
$scroll.addEventListener('click', () => {
|
||||
document
|
||||
.querySelector('.notion-frame > .notion-scroller')
|
||||
|
Loading…
Reference in New Issue
Block a user