From 88e2e12f7c76b403c4d200f01a66d5c7c2c08913 Mon Sep 17 00:00:00 2001 From: treamz Date: Sun, 22 Mar 2026 01:36:25 +0300 Subject: [PATCH] Fix PDF: move page grid code inside IIFE (ReferenceError fix) --- public/pdf.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/pdf.html b/public/pdf.html index bdf5cdf..b16bd0a 100644 --- a/public/pdf.html +++ b/public/pdf.html @@ -1657,8 +1657,6 @@ // ─── Security sub-op default ────────────────────────────────────────────── state.securitySub = 'protect'; -})(); - // ─── Page Grid Thumbnails ───────────────────────────────────────────────── function renderPageGrid(gridId, hintId, fileId, pages, mode) { const grid = document.getElementById(gridId); @@ -1704,6 +1702,9 @@ renderPageGrid('reorderPageGrid', 'reorderHint', sel.id, sel.pages, 'reorder'); } }; + +})(); +