This file contains hidden or 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
class Helpers { | |
constructor() { | |
this.cvt_buf = new ArrayBuffer(8); | |
this.cvt_f64a = new Float64Array(this.cvt_buf); | |
this.cvt_u64a = new BigUint64Array(this.cvt_buf); | |
this.cvt_u32a = new Uint32Array(this.cvt_buf); | |
} | |
ftoi(f) { |
This file contains hidden or 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> | |
function main() { | |
// 检查 chrome 版本号需要是 76-78 | |
try { | |
var browserVersion = navigator.userAgent.split("Chrome/")[1].split(" Safari/")[0]; | |
majorVersion = parseInt(browserVersion.substr(0, 2)); | |
if (majorVersion != 77 && majorVersion != 76 && majorVersion != 78) { | |
return; |