Update main.js

This commit is contained in:
Divyanshu Singhal 2025-10-30 14:11:23 +05:30 committed by GitHub
parent 9554c36c1e
commit 3191c234e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()
}
}
}