Skip to content

Commit

Permalink
#3 BUG: play tasks when the task is opened in specific tab
Browse files Browse the repository at this point in the history
  • Loading branch information
hugodeaguiar committed Oct 20, 2023
1 parent af533da commit bc6cf1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ function getTaskFromTabs(tabs) {
let url = tabs[0].url;

const start = url.indexOf('cards') + 6;
const end = url.indexOf('/details');
const partial_id_string = url.substring(start);
const end = partial_id_string.indexOf('/');

task_id = url.substring(start, end);
task_id = partial_id_string.substring(0, end);
}

setTimeout(initPopUp, 600);
Expand Down

0 comments on commit bc6cf1b

Please sign in to comment.