Skip to content

Commit

Permalink
fix: 修复 ocr 展示入口
Browse files Browse the repository at this point in the history
  • Loading branch information
moshangqi committed Sep 15, 2023
1 parent 4eb4e9b commit f6b7fb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/sandbox/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const App = () => {
const storage = await Chrome.storage.local.get(STORAGE_KEYS.ENABLE_OCR_STATUS);
const enableStatus = storage[STORAGE_KEYS.ENABLE_OCR_STATUS];
// 对于没有明确原因的 ocr 进行一次预热
if ([EnableOcrStatus.disable, EnableOcrStatus.enable].includes(enableStatus)) {
if (![EnableOcrStatus.disable, EnableOcrStatus.enable].includes(enableStatus)) {
try {
await ocrManager.init();
const enableOcrStatus = await ocrManager.isWebOcrReady();
Expand Down
3 changes: 3 additions & 0 deletions src/pages/sandbox/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
* {
box-sizing: border-box;
font-size: 14px;
margin: 0;
}

body {
background-color: transparent;
width: 100vw;
height: 100vh;
}

blockquote {
Expand Down
1 change: 1 addition & 0 deletions src/styles/global.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* {
box-sizing: border-box;
font-size: 14px;
margin: 0;
}

0 comments on commit f6b7fb4

Please sign in to comment.