Skip to content

Commit 343e260

Browse files
committed
small test to make sure values are being returned when on leetcode.com
1 parent c69d8b3 commit 343e260

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

content.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("🧠 leetcode tracker is active")

manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"manifest_version" : 3,
2+
"manifest_version" : 2,
33
"name": "LeetCode Tracker",
44
"version": "0.1.0",
55
"descriptin": "Track your leetcode activity to improve faster",
66
"permissions": ["storage", "tabs", "activeTab", "scripting"],
77
"host_permissions": ["https://leetcode.com/*"],
88
"background": {
9-
"service_worker": "background.js"
9+
"scripts": ["background.js"],
10+
"persistent": false
1011
},
1112
"action": {
1213
"default_popup": "popup.html",

popup/popup.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html xml:lang="en">
3+
<head>
4+
<title>Leetcode Tracker</title>
5+
<link rel="stylesheet" href="popup.css">
6+
</head>
7+
8+
<body>
9+
<h1>LeetCode Tracker</h1>
10+
<p id="status">No data yet</p>
11+
<script src="popup.js"></script>
12+
</body>
13+
</html>

popup/popup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
document.getElementById("status").textContent = "Loading...";

0 commit comments

Comments
 (0)