Skip to content

Commit

Permalink
chore: set timeout to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel2B committed Jul 2, 2022
1 parent 001cbf5 commit 7771d72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension/modules/subtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export async function translateSubtitles() {
const settingsButton = document.querySelector('.ytp-settings-button');
settingsButton.click();

await delay(1000);
await delay(0);

let subtitlesExist = false;
const subtitulesMenu = document.querySelectorAll('.ytp-menuitem');
Expand All @@ -327,7 +327,7 @@ export async function translateSubtitles() {
return;
}

await delay(1000);
await delay(0);

let translationsExist = false;

Expand Down Expand Up @@ -370,7 +370,7 @@ export async function translateSubtitles() {
subtituleItems[subtituleItems.length - 1].click();
}

await delay(1000);
await delay(0);

let languageExist = false;
const languages = document.querySelectorAll('.ytp-menuitem');
Expand Down

0 comments on commit 7771d72

Please sign in to comment.