diff --git a/src/js/remoteServices.js b/src/js/remoteServices.js index 4b1ab28..5793a7d 100644 --- a/src/js/remoteServices.js +++ b/src/js/remoteServices.js @@ -90,7 +90,9 @@ export default { const json = document.getElementById("mt-toggl-data")?.dataset?.togglJson || "{}" const data = JSON.parse(json) - const match = data.projectName?.match(projectRegex) + const match = + data.taskName?.match(projectRegex) || + data.projectName?.match(projectRegex) return match && match[1] } },