Skip to content

Commit a732d0b

Browse files
committed
Send real-time tab title and URL from extension to Django API
1 parent b4d61bc commit a732d0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/popup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ document.getElementById("getHelp").addEventListener("click", async () => {
1515
"Content-Type": "application/json"
1616
},
1717
body: JSON.stringify({
18-
title: "Two Sum - LeetCode",
19-
url: "https://leetcode.com/problems/two-sum"
18+
title: title,
19+
url: url
2020
})
2121
})
2222
.then(response => response.json())

0 commit comments

Comments
 (0)