We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29eb894 + 6ed1c1b commit f4954feCopy full SHA for f4954fe
1 file changed
src/index.tsx
@@ -124,7 +124,7 @@ function initClientProvider() {
124
if (element.parentNode != document.head) {
125
document.head.appendChild(element);
126
}
127
- if (lastVisited && lastVisited.ref) {
+ if (lastVisited && lastVisited.ref && lastVisited.ref.parentNode) {
128
document.head!.removeChild(lastVisited.ref);
129
130
0 commit comments