Skip to content

Commit

Permalink
Merge views subtree
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 14, 2023
2 parents 3141875 + 8886a60 commit 4e356c7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions template/pages/@/meta.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,19 @@ if (pathname) {
<script>
partytown = {
resolveUrl: function (url, location) {
if (url.hostname !== 'www.google-analytics.com' && url.hostname !== 'analytics.tiktok.com') {
const proxyUrl = new URL(location.href + 'reverse-proxy/');
proxyUrl.searchParams.append('url', url.href);
return proxyUrl;
}
switch (url.hostname) {
case 'www.googletagmanager.com':
case 'www.google-analytics.com':
case 'analytics.tiktok.com':
case location.hostname:
break;
default:
const proxyUrl = new URL(`https://${location.hostname}/reverse-proxy/`);
proxyUrl.searchParams.append('url', url.href);
return proxyUrl;
};
},
forward: []
forward: [],
};
</script>
<%- await include('@/helpers/widgets-append', {
Expand Down

0 comments on commit 4e356c7

Please sign in to comment.