diff --git a/src/content/asana.js b/src/content/asana.js index 2283c4819..8e385cb82 100644 --- a/src/content/asana.js +++ b/src/content/asana.js @@ -43,7 +43,10 @@ togglbutton.render('.SpreadsheetRow .SpreadsheetTaskName:not(.toggl)', { observe const descriptionSelector = () => taskNameCell.querySelector('textarea').textContent.trim(); const projectHeaderSelector = () => { // Try to look for for page project title instead. - const projectHeader = document.querySelector('.TopbarPageHeaderStructure.ProjectPageHeader .TopbarPageHeaderStructure-title'); + const projectHeader = document.querySelector( + '.TopbarPageHeaderStructure.ProjectPageHeader .ProjectPageHeaderProjectTitle-shadow', + ); + if (!projectHeader) { return ''; }