Skip to content

Commit

Permalink
Remove online dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wrbl606 committed May 13, 2023
1 parent 0cc9747 commit 2a07090
Show file tree
Hide file tree
Showing 11 changed files with 292 additions and 17 deletions.
281 changes: 281 additions & 0 deletions extension/firefox/content/deps/tesseract-core-simd.js

Large diffs are not rendered by default.

Binary file not shown.
1 change: 0 additions & 1 deletion extension/firefox/content/deps/tesseract.min.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions extension/firefox/content/deps/tesseract@4.0.2.min.js

This file was deleted.

3 changes: 3 additions & 0 deletions extension/firefox/content/deps/tesseract@4.0.5.min.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions extension/firefox/content/deps/worker.min.js

This file was deleted.

1 change: 0 additions & 1 deletion extension/firefox/content/deps/worker.min.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions extension/firefox/content/deps/worker@4.0.2.min.js

This file was deleted.

3 changes: 3 additions & 0 deletions extension/firefox/content/deps/worker@4.0.5.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions extension/firefox/content/page/ocr/worker.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as ocr from '../../deps/tesseract@4.0.2.min.js';
import * as ocr from '../../deps/tesseract@4.0.5.min.js';

let worker;

async function initWorker(root = window.location.origin) {
const w = await Tesseract.createWorker({
workerPath: `${root}/content/deps/worker@4.0.2.min.js`,
workerPath: `${root}/content/deps/worker@4.0.5.min.js`,
workerBlobURL: false,
langPath: `${root}/content/deps/`,
corePath: `https://wtc.wrbl.xyz/tesseract@4.0.2-core-simd.wasm.js`,
corePath: `${root}/content/deps/tesseract-core-simd.js`,
tessedit_create_hocr: '0',
tessedit_create_tsv: '0',
tessedit_create_box: '0',
Expand Down
5 changes: 2 additions & 3 deletions extension/firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "What-to-click",
"version": "1.7.2",
"description": "AI-powered how-to documentation creator.",
"version": "1.8.0",
"description": "Fully offline, AI-powered how-to documentation creator.",
"icons": {
"48": "icons/record.png"
},
Expand Down Expand Up @@ -32,7 +32,6 @@
"web_accessible_resources": [
"content/page.html"
],
"content_security_policy": "script-src 'self' https://wtc.wrbl.xyz",
"commands": {
"_execute_browser_action": {
"suggested_key": {
Expand Down

0 comments on commit 2a07090

Please sign in to comment.