Compare commits

...

2 Commits

Author SHA1 Message Date
Ajay Ramachandran
27fe2ca8f0 Increase version number 2021-02-03 18:43:16 -05:00
Ajay Ramachandran
54b4681fc3 Fix invidious support
Fixes https://github.com/ajayyy/SponsorBlock/issues/636
2021-02-03 18:28:50 -05:00
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "__MSG_fullName__",
"short_name": "SponsorBlock",
"version": "2.0.12.2",
"version": "2.0.12.3",
"default_locale": "en",
"description": "__MSG_Description__",
"content_scripts": [{

View File

@@ -1528,7 +1528,8 @@ function getSegmentsMessage(sponsorTimes: SponsorTime[]): string {
}
function addHotkeyListener(): boolean {
const videoRoot = document.getElementById("movie_player") as HTMLDivElement;
let videoRoot = document.getElementById("movie_player") as HTMLDivElement;
if (onInvidious) videoRoot = document.getElementById("player-container") as HTMLDivElement;
if (!videoRootsWithEventListeners.includes(videoRoot)) {
videoRoot.addEventListener("keydown", hotkeyListener);