From 47dfeeaf601a4cb8d74885de27261ff9812a3447 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 7 Dec 2022 21:46:56 +0800 Subject: [PATCH] fix prism --- components/PrismMac.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/PrismMac.js b/components/PrismMac.js index a379dc36..687bf666 100644 --- a/components/PrismMac.js +++ b/components/PrismMac.js @@ -30,7 +30,7 @@ const PrismMac = () => { } } }) - observer.observe(document.querySelector('article'), { attributes: true, subtree: true }) + observer.observe(document.querySelector('#container'), { attributes: true, subtree: true }) }, []) return <> }