Fix PDF: move page grid code inside IIFE (ReferenceError fix)

This commit is contained in:
treamz 2026-03-22 01:36:25 +03:00
parent 3bcf109e08
commit 88e2e12f7c

View File

@ -1657,8 +1657,6 @@
// ─── Security sub-op default ────────────────────────────────────────────── // ─── Security sub-op default ──────────────────────────────────────────────
state.securitySub = 'protect'; state.securitySub = 'protect';
})();
// ─── Page Grid Thumbnails ───────────────────────────────────────────────── // ─── Page Grid Thumbnails ─────────────────────────────────────────────────
function renderPageGrid(gridId, hintId, fileId, pages, mode) { function renderPageGrid(gridId, hintId, fileId, pages, mode) {
const grid = document.getElementById(gridId); const grid = document.getElementById(gridId);
@ -1704,6 +1702,9 @@
renderPageGrid('reorderPageGrid', 'reorderHint', sel.id, sel.pages, 'reorder'); renderPageGrid('reorderPageGrid', 'reorderHint', sel.id, sel.pages, 'reorder');
} }
}; };
})();
</script> </script>
</body> </body>