Skip to content

Commit

Permalink
Update background.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ApeDevOne authored May 16, 2024
1 parent c7d5516 commit 483051a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// background.js
function changeSubtitleSize(size) {
const textContainer = document.querySelector('.shaka-text-container');
if (textContainer) {
const textSpans = textContainer.querySelectorAll('.shaka-text-wrapper');
const textSpans = textContainer.querySelectorAll('.shaka-text-region span span');
textSpans.forEach(span => {
span.style.fontSize = `${size}px`;
});
Expand Down

0 comments on commit 483051a

Please sign in to comment.