mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-19 11:09:03 +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($scroll);
|
||||||
$container.append($help);
|
$container.append($help);
|
||||||
|
|
||||||
|
if (store().top > 0)
|
||||||
|
$scroll.classList.add('hidden');
|
||||||
|
|
||||||
$scroll.addEventListener('click', () => {
|
$scroll.addEventListener('click', () => {
|
||||||
document
|
document
|
||||||
.querySelector('.notion-frame > .notion-scroller')
|
.querySelector('.notion-frame > .notion-scroller')
|
||||||
|
Loading…
Reference in New Issue
Block a user