FF version was broke, somehow this fixes it.

This commit is contained in:
Araragi 2022-08-03 16:14:06 -04:00
parent 0f338dd2ff
commit 74f5393dbe
5 changed files with 13 additions and 4 deletions

View File

@ -56140,7 +56140,11 @@ return a / b;`;
// src/main.js // src/main.js
var model2; var model2;
enableProdMode(); enableProdMode();
setWasmPaths("https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/"); setWasmPaths({
"tfjs-backend-wasm.wasm": "https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/tfjs-backend-wasm.wasm",
"tfjs-backend-wasm-simd.wasm": "https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/tfjs-backend-wasm-simd.wasm",
"tfjs-backend-wasm-threaded-simd.wasm": "https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/tfjs-backend-wasm-threaded-simd.wasm"
});
setBackend("wasm"); setBackend("wasm");
function toggle(obj, v) { function toggle(obj, v) {
if (v) if (v)

View File

@ -8,7 +8,7 @@
}, },
"name": "JannySkillersCaptchaSolver", "name": "JannySkillersCaptchaSolver",
"description": "The Janny Skillers Captcha Solver of choice.", "description": "The Janny Skillers Captcha Solver of choice.",
"version": "0.21", "version": "0.23",
"icons": { "icons": {
"64": "1449696017588.png" "64": "1449696017588.png"
}, },

View File

@ -1 +1 @@
{"addons":{"{jkcs@coom.tech}":{"updates":[{"version":"0.21","update_link":"https://git.coom.tech/araragi/JKCS/raw/branch/master/jkcs-0.21.xpi"}]}}} {"addons":{"{jkcs@coom.tech}":{"updates":[{"version":"0.23","update_link":"https://git.coom.tech/araragi/JKCS/raw/branch/master/jkcs-0.23.xpi"}]}}}

BIN
jkcs-0.23.xpi Normal file

Binary file not shown.

View File

@ -8,7 +8,12 @@ let model
tf.enableProdMode() tf.enableProdMode()
// tf.enableDebugMode() // tf.enableDebugMode()
setWasmPaths('https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/') // TODO: Figure out how the fuck to load the WASM modules locally from the extension. setWasmPaths({
'tfjs-backend-wasm.wasm': 'https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/tfjs-backend-wasm.wasm',
'tfjs-backend-wasm-simd.wasm': 'https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/tfjs-backend-wasm-simd.wasm',
'tfjs-backend-wasm-threaded-simd.wasm': 'https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/tfjs-backend-wasm-threaded-simd.wasm'
}) // TODO: Figure out how the fuck to load the WASM modules locally from the extension.
// setWasmPaths('https://unpkg.com/@tensorflow/tfjs-backend-wasm@3.19.0/dist/', true)
tf.setBackend('wasm') tf.setBackend('wasm')
function toggle (obj, v) { function toggle (obj, v) {