@hyperbook/markdown 0.60.2 → 0.60.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,7 +54,7 @@ hyperbook.protect = (function () {
|
|
|
54
54
|
function init(root) {
|
|
55
55
|
const els = root.getElementsByClassName("directive-protect");
|
|
56
56
|
for (let el of els) {
|
|
57
|
-
const inputEl = el.
|
|
57
|
+
const inputEl = el.querySelector(":scope > .password-input input");
|
|
58
58
|
const id = el.getAttribute("data-id");
|
|
59
59
|
|
|
60
60
|
if (!inputEl) continue;
|
|
@@ -66,7 +66,7 @@ hyperbook.protect = (function () {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
const hiddenEL = el.
|
|
69
|
+
const hiddenEL = el.querySelector(":scope > .hidden");
|
|
70
70
|
el.removeChild(hiddenEL);
|
|
71
71
|
|
|
72
72
|
onUpdateToast(inputEl, el, hiddenEL);
|