Skip to content
Snippets Groups Projects
Commit d02b21e4 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Don't fail when trying to insert Matomo script before a non-existing script

parent f8095fbf
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@
g.async = true
g.defer = true
g.src = url + "matomo.js"
s.parentNode?.insertBefore(g, s)
s?.parentNode?.insertBefore(g, s)
})()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment