Skip to content

Commit

Permalink
fix: Use cat icon if no icon provided (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored May 31, 2019
1 parent 86c3605 commit fc02e02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "menubar",
"version": "6.0.1",
"author": "max ogden",
"author": "Max Ogden",
"bugs": {
"url": "https://github.com/maxogden/menubar/issues"
},
"description": "high level way to create menubar desktop applications with electron",
"files": [
"/example/*.png",
"/lib"
],
"homepage": "https://github.com/maxogden/menubar",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class Menubar extends EventEmitter {
let trayImage =
this.options.icon || path.join(this.options.dir, 'IconTemplate.png');
if (typeof trayImage === 'string' && !fs.existsSync(trayImage)) {
trayImage = path.join(__dirname, 'example', 'IconTemplate.png'); // Default cat icon
trayImage = path.join(__dirname, '..', 'example', 'IconTemplate.png'); // Default cat icon
}

const defaultClickEvent = this.options.showOnRightClick
Expand Down

0 comments on commit fc02e02

Please sign in to comment.