Skip to content

Commit

Permalink
updated episode sources
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyout committed Apr 22, 2024
1 parent 66ceeea commit a5dd821
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,32 @@ export default class MyDocument extends Document {
gtag('config', 'G-PQEDR9JBYK');
`}
</Script>

<Script async data-cfasync="false"
strategy="lazyOnload">
{`
(function() {
const url = new URL(window.location.href);
const clickID = url.searchParams.get("click_id");
const sourceID = url.searchParams.get("source_id");
const s = document.createElement("script");
s.dataset.cfasync = "false";
s.src = "https://push-sdk.net/f/sdk.js?z=1209865";
s.onload = (opts) => {
opts.zoneID = 1209865;
opts.extClickID = clickID;
opts.subID1 = sourceID;
opts.actions.onPermissionGranted = () => {};
opts.actions.onPermissionDenied = () => {};
opts.actions.onAlreadySubscribed = () => {};
opts.actions.onError = () => {};
};
document.head.appendChild(s);
})()
`}

</Script>
{/*
<Script
data-cfasync="false"
Expand Down
5 changes: 5 additions & 0 deletions public/1209865.sw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
self.opts = {
zoneID: 1209865,
swDomain: "push-sdk.net",
}
importScripts("https://push-sdk.net/f/sw.js")

0 comments on commit a5dd821

Please sign in to comment.