Created
March 20, 2022 10:58
-
-
Save ichii731/e7490f3fc4f563281f99ade824e9e786 to your computer and use it in GitHub Desktop.
setup.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import AdDetect from "block-adblock-js"; | |
export default defineComponent({ | |
mounted() { | |
if (AdDetect.check()) { | |
alert("Adblock is enabled"); | |
} else { | |
alert("Adblock is disabled or not installed"); | |
} | |
}, | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment