We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56dc529 commit f0649dfCopy full SHA for f0649df
src/connectors/youtube.js
@@ -99,10 +99,11 @@ Connector.isScrobblingAllowed = () => {
99
return false;
100
}
101
102
- // FIXME: Workaround to prevent scrobbling the vidio opened in a background tab.
103
- // if (Connector.getCurrentTime() < 1) {
104
- // return false;
105
- // }
+ // Workaround to prevent scrobbling the video opened in a background tab.
+ const videoElement = document.querySelector(videoSelector);
+ if (videoElement && videoElement.currentTime < 1) {
+ return false;
106
+ }
107
108
if (allowedCategories.length === 0) {
109
return true;
0 commit comments