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
const VERSION = '0.0.1'; | |
const assetsToCache = [...new Set([self.location.pathname, '/'])].map( | |
path => self.location.origin + path, | |
); | |
self.addEventListener('install', () => { | |
self.skipWaiting(); | |
self.caches.open(VERSION).then(cache => { | |
cache.addAll(assetsToCache); |
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
document.querySelector('#videoVerifyContent').remove(); | |
async function validator() { | |
const ocr = async url => { | |
const { default: Tesseract } = await import( | |
"https://dev.jspm.io/tesseract.js" | |
); | |
const data = await Tesseract.recognize( | |
url || | |
"https://ware.cdeledu.com/cdel_ware/common/makeArithmeticCode.shtm?random=0.6212206602916508" | |
); |