Skip to content

Commit 2c9357b

Browse files
authored
Merge pull request #22 from kiing-dom/feat/chrome-support
migration to manifest v3
2 parents de3b955 + 8d3f2ee commit 2c9357b

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

background.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// background.js
1+
22
// Handles persistent messaging and storage for LeetCode Tracker
3+
importScripts('browser-polyfill.js');
34

45
// Listen for messages from content scripts
56
browser.runtime.onMessage.addListener((message, sender, sendResponse) => {

manifest.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
{
2-
"manifest_version": 2,
2+
"manifest_version": 3,
33
"name": "KeepCode",
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"description": "Prep smarter for coding interviews! KeepCode tracks your LeetCode progress so you can focus on solving.",
66
"permissions": ["storage", "tabs", "activeTab", "https://leetcode.com/*"],
77
"background": {
8-
"scripts": [
9-
"background.js",
10-
"browser-polyfill.js"
11-
],
12-
"persistent": false
8+
"service_worker": "background.js"
139
},
14-
"browser_action": {
10+
"action": {
1511
"default_popup": "popup/popup.html",
1612
"default_icon": "icons/keepcode-icon.png"
1713
},
1814
"content_scripts": [
1915
{
2016
"matches": ["https://leetcode.com/problems/*"],
2117
"js": [
18+
"browser-polyfill.js",
2219
"leetcodeApi.js",
23-
"content.js",
24-
"browser-polyfill.js"
20+
"content.js"
2521
]
2622
}
2723
],

0 commit comments

Comments
 (0)