mirror of
https://github.com/divyanshu9821/pdf-scroll-lock.git
synced 2026-07-22 06:42:41 +00:00
Update main.js
This commit is contained in:
parent
9554c36c1e
commit
3191c234e3
1 changed files with 2 additions and 2 deletions
4
main.js
4
main.js
|
|
@ -38,6 +38,7 @@ function setLockingMechanism(element) {
|
|||
container.style.overflow = locked ? "hidden" : "auto"
|
||||
container.style.pointerEvents = locked ? "none" : "auto";
|
||||
button.innerHTML = locked ? lockedIcon : unlockedIcon
|
||||
updateTheme();
|
||||
}
|
||||
|
||||
toggle()
|
||||
|
|
@ -45,7 +46,6 @@ function setLockingMechanism(element) {
|
|||
button.addEventListener("click", toggle)
|
||||
toolbar.prepend(button)
|
||||
|
||||
updateTheme();
|
||||
}
|
||||
|
||||
function removeLockingMechanism() {
|
||||
|
|
@ -91,4 +91,4 @@ module.exports = class LockPDF extends Plugin {
|
|||
removeLockingMechanism()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue