mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
9 lines
320 B
TypeScript
9 lines
320 B
TypeScript
import { ipcRenderer } from 'electron';
|
|
|
|
export const setupSongControls = () => {
|
|
document.addEventListener('apiLoaded', (event) => {
|
|
ipcRenderer.on('seekTo', (_, t: number) => event.detail.seekTo(t));
|
|
ipcRenderer.on('seekBy', (_, t: number) => event.detail.seekBy(t));
|
|
}, { once: true, passive: true });
|
|
};
|