Skip to content

Commit

Permalink
chore: bump version to 0.2.0
Browse files Browse the repository at this point in the history
- Fixed issue with duplicate copy transcript buttons
- Added check to prevent multiple button creation
  • Loading branch information
lumpinif committed Nov 21, 2024
1 parent 3a8e91a commit b1537a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coursera-copilot",
"version": "0.1.0",
"version": "0.2.0",
"description": "Chrome extension to enhance Coursera learning experience",
"main": "index.js",
"type": "module",
Expand Down
7 changes: 7 additions & 0 deletions src/content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ const App = () => {
const init = async () => {
console.log('[Coursera Copilot] Initializing extension...');

// Check if button already exists
const existingContainer = document.getElementById('coursera-copilot-container');
if (existingContainer) {
console.log('[Coursera Copilot] Button already exists, skipping initialization');
return;
}

const tablist = await findElement(TABLIST_SELECTORS);

if (tablist) {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Coursera Copilot",
"version": "0.1.0",
"version": "0.2.0",
"description": "Enhance your Coursera learning experience with useful tools",
"permissions": ["clipboardWrite", "activeTab"],
"host_permissions": ["https://*.coursera.org/*"],
Expand Down

0 comments on commit b1537a4

Please sign in to comment.