aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/workbox-v4.3.1/workbox-offline-ga.prod.js
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-12-24 04:59:21 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-12-24 04:59:21 +0000
commit7ad1b7c380ba5607035149c95ac69fbd403e2bd8 (patch)
tree21bb15fd66b2ef99540ab7dafa29d5502f4de9fa /public/workbox-v4.3.1/workbox-offline-ga.prod.js
parent3140267ea0a3b37032003992695afd7dc1f4f46c (diff)
downloadsubmelon.dev-7ad1b7c380ba5607035149c95ac69fbd403e2bd8.tar.gz
submelon.dev-7ad1b7c380ba5607035149c95ac69fbd403e2bd8.tar.bz2
submelon.dev-7ad1b7c380ba5607035149c95ac69fbd403e2bd8.zip
chore: autopublish 2023-12-24T04:59:21Z
Diffstat (limited to 'public/workbox-v4.3.1/workbox-offline-ga.prod.js')
-rw-r--r--public/workbox-v4.3.1/workbox-offline-ga.prod.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/public/workbox-v4.3.1/workbox-offline-ga.prod.js b/public/workbox-v4.3.1/workbox-offline-ga.prod.js
deleted file mode 100644
index ca29dc7..0000000
--- a/public/workbox-v4.3.1/workbox-offline-ga.prod.js
+++ /dev/null
@@ -1,2 +0,0 @@
-this.workbox=this.workbox||{},this.workbox.googleAnalytics=function(e,t,o,n,a,c,w){"use strict";try{self["workbox:google-analytics:4.3.1"]&&_()}catch(e){}const r=/^\/(\w+\/)?collect/,s=e=>async({queue:t})=>{let o;for(;o=await t.shiftRequest();){const{request:n,timestamp:a}=o,c=new URL(n.url);try{const w="POST"===n.method?new URLSearchParams(await n.clone().text()):c.searchParams,r=a-(Number(w.get("qt"))||0),s=Date.now()-r;if(w.set("qt",s),e.parameterOverrides)for(const t of Object.keys(e.parameterOverrides)){const o=e.parameterOverrides[t];w.set(t,o)}"function"==typeof e.hitFilter&&e.hitFilter.call(null,w),await fetch(new Request(c.origin+c.pathname,{body:w.toString(),method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"text/plain"}}))}catch(e){throw await t.unshiftRequest(o),e}}},i=e=>{const t=({url:e})=>"www.google-analytics.com"===e.hostname&&r.test(e.pathname),o=new w.NetworkOnly({plugins:[e]});return[new n.Route(t,o,"GET"),new n.Route(t,o,"POST")]},l=e=>{const t=new c.NetworkFirst({cacheName:e});return new n.Route(({url:e})=>"www.google-analytics.com"===e.hostname&&"/analytics.js"===e.pathname,t,"GET")},m=e=>{const t=new c.NetworkFirst({cacheName:e});return new n.Route(({url:e})=>"www.googletagmanager.com"===e.hostname&&"/gtag/js"===e.pathname,t,"GET")},u=e=>{const t=new c.NetworkFirst({cacheName:e});return new n.Route(({url:e})=>"www.googletagmanager.com"===e.hostname&&"/gtm.js"===e.pathname,t,"GET")};return e.initialize=((e={})=>{const n=o.cacheNames.getGoogleAnalyticsName(e.cacheName),c=new t.Plugin("workbox-google-analytics",{maxRetentionTime:2880,onSync:s(e)}),w=[u(n),l(n),m(n),...i(c)],r=new a.Router;for(const e of w)r.registerRoute(e);r.addFetchListener()}),e}({},workbox.backgroundSync,workbox.core._private,workbox.routing,workbox.routing,workbox.strategies,workbox.strategies);
-//# sourceMappingURL=workbox-offline-ga.prod.js.map