mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Fix bugs from bad merge conflict solving
-fix missing songControls
-use player.seeked directly
-fix 'seeked' event listener
-fix e.target instead of e.detail in apiLoaded event
-fix document.querySelector('video') before apiLoaded
-setup timeChange Listener if linux+shortcuts enabled
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
const { ipcRenderer } = require("electron");
|
||||
|
||||
const is = require('electron-is');
|
||||
const { getImage } = require("./song-info");
|
||||
|
||||
const config = require("../config");
|
||||
@ -18,7 +18,8 @@ const srcChangedEvent = new CustomEvent('srcChanged');
|
||||
|
||||
module.exports = () => {
|
||||
document.addEventListener('apiLoaded', apiEvent => {
|
||||
if (config.plugins.isEnabled('tuna-obs')) {
|
||||
if (config.plugins.isEnabled('tuna-obs') ||
|
||||
(is.linux() && config.plugins.isEnabled('shortcuts'))) {
|
||||
setupTimeChangeListener();
|
||||
}
|
||||
const video = $('video');
|
||||
|
||||
Reference in New Issue
Block a user