Skip to content

Commit

Permalink
fix(shortcut): update selectors (#2295)
Browse files Browse the repository at this point in the history
  • Loading branch information
izontm committed Apr 15, 2024
1 parent 6025a96 commit f4ae333
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/content/shortcut.js
@@ -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
3 changes: 2 additions & 1 deletion src/origins.js
Expand Up @@ -527,7 +527,8 @@ export default {
},
'app.shortcut.com': {
url: '*://app.shortcut.com/*',
name: 'Shortcut'
name: 'Shortcut',
file: 'shortcut.js'
},
'sifterapp.com': {
url: '*://*.sifterapp.com/*',
Expand Down

0 comments on commit f4ae333

Please sign in to comment.