“document.createElement('script').onError” always executes with local fuckadblock script, but not with identical script on cdnjs.cloudflare.com
问题 Background I have a hook that uses fuckadblock. This is the code for the hook and it works correctly. It detects adblock when adblock is on, and does not detect adblock when adblock is not on. It calls a script from a server, but I want to store the script and run fuckadblock locally. I'm using the Gatsby framework. import { useEffect } from 'react' /** * Detects of addBlock is enabled * @param addBlockDetected What to do when addBlock is detected */ export default function(addBlockDetected)