Skip to content

Commit 3d0ad0a

Browse files
authored
Merge pull request wilfredinni#139 from wilfredinni/next
fix: carbon script duplicated on every navigation
2 parents e4f6dd5 + 33ec8d7 commit 3d0ad0a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"pprint",
9999
"prereleases",
100100
"prismjs",
101+
"projs",
101102
"pydoc",
102103
"Pylint",
103104
"Pypi",

src/components/CarbonAds.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ const container = ref()
33
44
const placeholder = ref(false)
55
const init = () => {
6+
const carbonScript = document.getElementById('_carbonads_projs')
7+
if (carbonScript) {
8+
carbonScript.remove()
9+
}
10+
611
placeholder.value = true
712
const serve = import.meta.env.VITE_CARBON_SERVE
813
const placement = import.meta.env.VITE_CARBON_PLACEMENT

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy