Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed Aug 10, 2024
1 parent 18e1484 commit 3d0bc2d
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,35 @@ export default defineConfig({
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9660680807544080',
// crossorigin: "anonymous"
},

],
[
'script',
{
src: 'https://fundingchoicesmessages.google.com/i/pub-9660680807544080?ers=1',
nonce: '2Emt7JGn88cO9VqScs4V6A'
}
],
[
'script',
{
nonce: '2Emt7JGn88cO9VqScs4V6A'
},
`(function() {
function signalGooglefcPresent() {
if (!window.frames['googlefcPresent']) {
if (document.body) {
const iframe = document.createElement('iframe');
iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;';
iframe.style.display = 'none';
iframe.name = 'googlefcPresent';
document.body.appendChild(iframe);
} else {
setTimeout(signalGooglefcPresent, 0);
}
}
}
signalGooglefcPresent();
})();`
]
],
outDir: '',
Expand Down

0 comments on commit 3d0bc2d

Please sign in to comment.