Skip to content

Commit

Permalink
feat(auto-tracker): Add auto tracking capability to extension
Browse files Browse the repository at this point in the history
  • Loading branch information
with-shrey committed Sep 12, 2024
1 parent 362be1f commit 6d8945a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/content/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ togglbutton.render(
className: "github",
description: description,
projectName: projectElem && projectElem.textContent,
autoTrackerKey: "pull-issue"
});

div.appendChild(link);
Expand Down Expand Up @@ -83,6 +84,7 @@ togglbutton.render(
className: "github",
description: description,
projectName: projectElem ? projectElem.textContent.trim() : "",
autoTrackerKey: "peek"
});

div.appendChild(link);
Expand Down Expand Up @@ -110,6 +112,7 @@ togglbutton.render(
className: "github",
description: description,
projectName: projectElem && projectElem.textContent,
autoTrackerKey: "project"
});

const wrapper = createTag(
Expand Down
6 changes: 4 additions & 2 deletions src/content/notion.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ togglbutton.render(

const link = togglbutton.createTimerLink({
className: 'notion',
description: getDescription
description: getDescription,
autoTrackerKey: "side_peek"
});

const wrapper = createWrapper(link);
Expand Down Expand Up @@ -75,7 +76,8 @@ togglbutton.render(

const link = togglbutton.createTimerLink({
className: 'notion',
description: getDescription
description: getDescription,
autoTrackerKey: "document"
});

const wrapper = createWrapper(link);
Expand Down

0 comments on commit 6d8945a

Please sign in to comment.