We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e790ad3 commit 3c94f71Copy full SHA for 3c94f71
packages/@vuepress/core/lib/client/root-mixins/updateMeta.js
@@ -61,9 +61,9 @@ export default {
61
*/
62
function updateMetaTags (newMetaTags, currentMetaTags) {
63
if (currentMetaTags) {
64
- [...currentMetaTags].forEach(c => {
65
- document.head.removeChild(c)
66
- })
+ [...currentMetaTags]
+ .filter(c => c.parentNode === document.head)
+ .forEach(c => document.head.removeChild(c))
67
}
68
if (newMetaTags) {
69
return newMetaTags.map(m => {
0 commit comments