Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Cannot read property 'setBadge' of undefined - on Windows #3

Closed
gfpacheco opened this issue Aug 6, 2015 · 1 comment
Closed

Cannot read property 'setBadge' of undefined - on Windows #3

gfpacheco opened this issue Aug 6, 2015 · 1 comment

Comments

@gfpacheco
Copy link
Contributor

You're using the app.dock even though it's not supported on Windows.
I ran the nativefier only for win32 platform and when the app regain focus it throws an error:

Uncaught Exception:
TypeError: Cannot read property 'setBadge' of undefined
    at BrowserWindow.<anonymous>
(...\resources\app\main.js:44:17)
    at emitOne (events.js:82:20)
    at BrowserWindow.emit (event.js:169:7)

I imagine a single if (process.platform === 'darwin') must solve the issue, just reporting.

BTW, great project!

@jiahaog jiahaog closed this as completed in e987b64 Aug 7, 2015
@jiahaog
Copy link
Member

jiahaog commented Aug 7, 2015

#4 That makes sense, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants