Skip to content

Commit

Permalink
fix(shortcut): update selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
izontm committed Apr 15, 2024
1 parent a448a2c commit d27d04c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/content/shortcut.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/**
* @name Shortcut
* @urlAlias app.shortcut.com
* @urlRegex *://app.shortcut.com/*
*/
'use strict';

togglbutton.render('.story-state:not(.toggl)', { observe: true }, function (
togglbutton.render('#story-dialog-state-dropdown:not(.toggl)', { observe: true }, function (
elem
) {
const wrap = createTag('div');
Expand All @@ -15,7 +20,7 @@ togglbutton.render('.story-state:not(.toggl)', { observe: true }, function (
};

const getProject = function () {
return $('.story-project .value', elem)?.textContent;
return $('.story-epic .value', elem)?.textContent;
};

const link = togglbutton.createTimerLink({
Expand Down

0 comments on commit d27d04c

Please sign in to comment.