mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
refactor: remove dynamic require (partial of #2)
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import { ipcRenderer } from 'electron';
|
||||
|
||||
import { ConfigType } from '../../config/dynamic';
|
||||
|
||||
import type { FastAverageColorResult } from 'fast-average-color';
|
||||
|
||||
function hexToHSL(H: string) {
|
||||
@ -71,7 +73,7 @@ function changeElementColor(element: HTMLElement | null, hue: number, saturation
|
||||
}
|
||||
}
|
||||
|
||||
export default () => {
|
||||
export default (_: ConfigType<'album-color-theme'>) => {
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'attributes') {
|
||||
|
||||
Reference in New Issue
Block a user