Fixed loop breakage

This commit is contained in:
Maxim Stewart 2020-08-01 23:27:38 -05:00
parent 41e26c35a6
commit e578231d76
3 changed files with 5 additions and 5 deletions

View File

@ -11,9 +11,8 @@ Better YouTube + works to improve the YouTube experience by providing quick acce
* It shows volume level as you scroll. * It shows volume level as you scroll.
* It lets Unix, Linux, and MacOS systems have the ability to download the video using native app calls. * It lets Unix, Linux, and MacOS systems have the ability to download the video using native app calls.
# Version: 1.5.3 # Version: 1.5.4
* Refactored a little * Fixed loop breakage
* Readded loader check
# Download # Download
https://addons.mozilla.org/en-US/firefox/addon/better-youtube-plus/ https://addons.mozilla.org/en-US/firefox/addon/better-youtube-plus/

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Better Youtube +", "name": "Better Youtube +",
"version": "1.5.3", "version": "1.5.4",
"description": "Enhancements for Youtube to have a better experience.", "description": "Enhancements for Youtube to have a better experience.",
"applications": { "applications": {

View File

@ -43,7 +43,7 @@
let ytMaxDefaultImg, ytHqDefaultImg, ytAMaxDefaultImg, ytAHqDefaultImg; // Thumbnail images let ytMaxDefaultImg, ytHqDefaultImg, ytAMaxDefaultImg, ytAHqDefaultImg; // Thumbnail images
let mainContentArea, playerWindow, containerOfPlyrWndow, video; // Youtube Player container let mainContentArea, playerWindow, containerOfPlyrWndow, video; // Youtube Player container
let videoTimeLength, videoTimeCurent, ytRangeStart, ytRangeEnd, let videoTimeLength, videoTimeCurent, ytRangeStart, ytRangeEnd,
slugInputTag, endlessPlayTag, ytVideoIntervalLoop; slugInputTag, endlessPlayTag, ytVideoIntervalLoop, loopingInterval;
let poppedContainer, videoSlug, volumeLbl, part; let poppedContainer, videoSlug, volumeLbl, part;
let modalHasBeenClosed = false; let modalHasBeenClosed = false;
@ -454,6 +454,7 @@
} }
const downloadVideo = () => { const downloadVideo = () => {
console.log("Downloading: " + video.baseURI);
browser.runtime.sendMessage( { "url": video.baseURI } ); browser.runtime.sendMessage( { "url": video.baseURI } );
} }