diff --git a/src/content/shortcut.js b/src/content/shortcut.js index 7e2327f52..4934c9fe7 100644 --- a/src/content/shortcut.js +++ b/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'); @@ -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({ diff --git a/src/origins.js b/src/origins.js index 8f0e64322..091f70b99 100644 --- a/src/origins.js +++ b/src/origins.js @@ -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/*',