mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
9 lines
299 B
JavaScript
9 lines
299 B
JavaScript
const { ipcRenderer } = require('electron');
|
|
|
|
module.exports.setupSongControls = () => {
|
|
document.addEventListener('apiLoaded', (e) => {
|
|
ipcRenderer.on('seekTo', (_, t) => e.detail.seekTo(t));
|
|
ipcRenderer.on('seekBy', (_, t) => e.detail.seekBy(t));
|
|
}, { once: true, passive: true });
|
|
};
|