Skip to content

Commit a91cf4f

Browse files
committed
Disconnect head observer when done
1 parent c49b8ad commit a91cf4f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/inject/dynamic-theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ export function createOrUpdateDynamicThemeInternal(themeConfig: Theme, dynamicTh
659659

660660
const headObserver = new MutationObserver(() => {
661661
if (document.head) {
662+
headObserver.disconnect();
662663
ready();
663664
}
664665
});

0 commit comments

Comments
 (0)