Skip to content

Commit

Permalink
fix for some unpopular browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Aug 30, 2024
1 parent 03517c2 commit 2bb653a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,11 @@ class VideoHandler {
);
this.votAutoSetVolumeSlider = ui.createSlider(
html`<strong
>${(this.data?.autoVolume ?? defaultAutoVolume) * 100}%</strong
>${Math.round(
(this.data?.autoVolume ?? defaultAutoVolume) * 100,
)}%</strong
>`,
(this.data?.autoVolume ?? defaultAutoVolume) * 100,
Math.round((this.data?.autoVolume ?? defaultAutoVolume) * 100),
0,
100,
);
Expand Down Expand Up @@ -2435,7 +2437,7 @@ function findContainer(site, video) {
: container;
}

const browserVersion = browserInfo.browser.version.split(".")[0];
const browserVersion = browserInfo.browser.version?.split(".")?.[0];
if (
site.selector?.includes(":not") &&
site.selector?.includes("*") &&
Expand Down

1 comment on commit 2bb653a

@ilyhalight
Copy link
Owner Author

@ilyhalight ilyhalight commented on 2bb653a Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and added round auto volume value

Please sign in to comment.