mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix(prompt-custom-titlebar): fix customScript is not function
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
// eslint-disable-next-line import/no-unresolved
|
// eslint-disable-next-line import/no-unresolved
|
||||||
import { Titlebar, Color } from 'custom-electron-titlebar';
|
import { Titlebar, Color } from 'custom-electron-titlebar';
|
||||||
|
|
||||||
export default () => {
|
const customTitlebarFunction = () => {
|
||||||
new Titlebar({
|
new Titlebar({
|
||||||
backgroundColor: Color.fromHex('#050505'),
|
backgroundColor: Color.fromHex('#050505'),
|
||||||
minimizable: false,
|
minimizable: false,
|
||||||
@ -15,3 +15,7 @@ export default () => {
|
|||||||
mainStyle.border = 'unset';
|
mainStyle.border = 'unset';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
module.exports = customTitlebarFunction;
|
||||||
|
export default customTitlebarFunction;
|
||||||
|
|||||||
Reference in New Issue
Block a user