Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 4270a6c

Browse files
committed
fix invalid URL issue in example app
1 parent 5495179 commit 4270a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ window.addEventListener('DOMContentLoaded', () => {
2222
ipcRenderer.on('renderer-titlebar', (event, menu) => {
2323
titlebar = new cet.Titlebar({
2424
backgroundColor: cet.Color.fromHex("#388e3c"),
25-
icon: new URL(path.join(__dirname, '/assets/images', '/icon.svg')),
25+
icon: path.join(__dirname, '/assets/images', '/icon.svg'),
2626
menu: menu,
2727
onMinimize: () => ipcRenderer.send('window-event', 'window-minimize'),
2828
onMaximize: () => ipcRenderer.send('window-event', 'window-maximize'),

0 commit comments

Comments
 (0)