mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
clean code
This commit is contained in:
@ -1,12 +1,10 @@
|
||||
import path from 'node:path';
|
||||
|
||||
import { app, BrowserWindow, ipcMain, ipcRenderer } from 'electron';
|
||||
import { app, BrowserWindow, ipcMain } from 'electron';
|
||||
|
||||
import config from '../config';
|
||||
import config from '@/config';
|
||||
|
||||
export const restart = () => {
|
||||
process.type === 'browser' ? restartInternal() : ipcRenderer.send('restart');
|
||||
};
|
||||
export const restart = () => restartInternal();
|
||||
|
||||
export const setupAppControls = () => {
|
||||
ipcMain.on('restart', restart);
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { singleton } from './decorators';
|
||||
|
||||
import type { YoutubePlayer } from '../types/youtube-player';
|
||||
import type { GetState } from '../types/datahost-get-state';
|
||||
import type { VideoDataChangeValue } from '../types/player-api-events';
|
||||
import type { YoutubePlayer } from '@/types/youtube-player';
|
||||
import type { GetState } from '@/types/datahost-get-state';
|
||||
import type { VideoDataChangeValue } from '@/types/player-api-events';
|
||||
|
||||
import type { SongInfo } from './song-info';
|
||||
|
||||
|
||||
@ -2,9 +2,9 @@ import { BrowserWindow, ipcMain, nativeImage, net } from 'electron';
|
||||
|
||||
import { cache } from './decorators';
|
||||
|
||||
import config from '../config';
|
||||
import config from '@/config';
|
||||
|
||||
import type { GetPlayerResponse } from '../types/get-player-response';
|
||||
import type { GetPlayerResponse } from '@/types/get-player-response';
|
||||
|
||||
export interface SongInfo {
|
||||
title: string;
|
||||
|
||||
Reference in New Issue
Block a user