Comments (3)
@umutc NativeImage
is undefined
. Do you have it imported at the top of your file?
from bozon.
@alchaplinsky yes it is
[email protected]
const { app, globalShortcut, BrowserWindow, ipcMain, Menu, Tray, shell, NativeImage } = require('electron');
const displaySettingsWindow = () => console.log('displaySettingsWindow');
const displaySettingsWindow = () => console.log('displaySettingsWindow');
const quitImmediatly = () => console.log('quitImmediatly');
app.on('ready', () => {
tray = new Tray(NativeImage.createEmpty());
const contextMenu = Menu.buildFromTemplate([
{ label: 'settings', type: 'normal', click: displaySettingsWindow },
{ label: 'clearCache', type: 'normal', click: clearCache },
{ label: 'close', type: 'normal', click: quitImmediatly },
])
tray.setToolTip('App')
tray.setContextMenu(contextMenu)
});
from bozon.
The problem was related to an image size larger than 32px
from bozon.
Related Issues (20)
- Use template-literal instead of EJS HOT 1
- Updates needed HOT 1
- Where modules for app/javascripts/main/index.js supposed to go? HOT 1
- How to add a new script for build for armv7l
- Debugging in DevTools HOT 1
- I updates Bozon, now nothing works anymore HOT 1
- Webpack config: is there a way to add more than two section(renderer,main) in the webpack.config.js? HOT 1
- Found 2 vulnerabilities (1 moderate, 1 high) after installed bozon HOT 1
- ModuleNotFoundError: dependency already declared in package.json not usable HOT 7
- No reloading for webpack HOT 2
- CSS not rendering properly HOT 8
- Bozon upgrade from v0.8.12 to v1.0.5 - bug issue HOT 4
- Node version not LTS HOT 1
- Create Environment specific package with latest Bozon
- SyntaxError while running bozon start -r on Win10. HOT 1
- execute a script HOT 1
- Loading custom html with custom script HOT 1
- packaging application with native modules HOT 1
- how to include native module and usage of it in correct way. (newby question)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bozon.