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
function load_geetest_img(slices){ | |
return new Promise((resolve, reject)=>{ | |
var img = new Image(); | |
img.crossOrigin = "Anonymous"; | |
img.onload = ()=>{resolve(img)}; | |
img.src = slices[0].style.backgroundImage.slice(4, -1); | |
}); | |
} | |
var restore_image = function(img, slices){ |
npm install -D acorn babel-loader @babel/core @babel/preset-env babel-polyfill webpack webpack-cli uglifyjs-webpack-plugin --save-dev
webpack-cli
and acorn
are dependencies that you, unfortunately, have to install if you want to run this god damn thing without any obscure warnings or errors.