Skip to content

Commit 05b3100

Browse files
committed
Migrate to manifest v3
Swapped out all the pre async/await syntax helpers in core.js for new async/await based ones used in ongoing Duplicate Tab migration. Everything else is largely just cleanup and migrating to a more class based arch as in the ongoing Duplicate Tab migration work. Image Extract *has* no state, so migrating to a non persited background page works very smoothly. Left the content script more or less alone, just merged the files and fixed a weird bug where looking up the imageData for the image would fail if both were empty strings. Just storing the image DOM element in the imageData solves the problem by removing the lookup entirely
1 parent 93ecb63 commit 05b3100

17 files changed

+598
-553
lines changed

background/index.html background-page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<script type="module" src="/background.js"></script>
5+
<script type="module" src="/src/main.js"></script>
66
</head>
77
</html>

background.js

-126
This file was deleted.

content_scripts/build_ui.js

-93
This file was deleted.

content_scripts/extract_images.js

-61
This file was deleted.

0 commit comments

Comments
 (0)