MCPcopy Create free account
hub / github.com/MALSync/MALSync / testForCloudflare

Method testForCloudflare

src/pages-sync/syncPage.ts:1004–1009  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1002 }
1003
1004 testForCloudflare() {
1005 if (document.title === 'Just a moment...' || document.title.indexOf('Cloudflare') !== -1) {
1006 return true;
1007 }
1008 return false;
1009 }
1010
1011 cdn(type: 'default' | 'captcha' | 'blocked' = 'default') {
1012 api.storage.addStyle(`

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected