From ed1fda9db3e52ad928be7e7e1da1d90e5eec9060 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 24 Aug 2026 00:02:03 -0400 Subject: [PATCH] again --- publish/quartz-patches/apply.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/publish/quartz-patches/apply.py b/publish/quartz-patches/apply.py index 2362c8c..4c8ab11 100644 --- a/publish/quartz-patches/apply.py +++ b/publish/quartz-patches/apply.py @@ -44,7 +44,6 @@ INSERT_BLOCK = ( " if (last.includes(\".\")) return origin + pathname\n" " return origin + pathname.replace(/[^/]*$/, \"\")\n" "})()\n\n" - "const isElement" ) REPLACE_GETOPTS = ( @@ -79,7 +78,7 @@ def patch(path: Path) -> bool: if REPLACE_GETOPTS not in text: print(f"getOpts block missing in {path}") return False - text = text.replace(INSERT_AFTER, INSERT_BLOCK, 1) + text = text.replace(INSERT_AFTER, INSERT_BLOCK + INSERT_AFTER, 1) text = text.replace(REPLACE_GETOPTS, REPLACE_WITH, 1) path.write_text(text, encoding="utf-8") print(f"patched {path}")