@kano/desktop-shell
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -59,5 +59,10 @@ const { app } = require('electron'); | ||
} | ||
} | ||
}, | ||
version: '1.2.3', | ||
}); | ||
shell.on('window-created', () => { | ||
console.log('New window!!!'); | ||
}); | ||
app.on('ready', () => { | ||
@@ -64,0 +69,0 @@ shell.createWindow(); |
@@ -8,3 +8,3 @@ const { remote, ipcRenderer } = require('electron'); | ||
let clicks = 0; | ||
let { devMode } = aboutOptions; | ||
let { devMode, version } = aboutOptions; | ||
@@ -17,3 +17,3 @@ function updateUI() { | ||
</div> | ||
<h2 class="title">${remote.app.getName()} ${remote.app.getVersion()}</h2> | ||
<h2 class="title">${remote.app.getName()} ${version}</h2> | ||
<h3 class="description">${aboutOptions.description || ''}</h3> | ||
@@ -20,0 +20,0 @@ <div class="copyright">${aboutOptions.copyright || ''}</div> |
@@ -14,2 +14,3 @@ const { | ||
const Logger = require('../logger'); | ||
const { EventEmitter } = require('events'); | ||
@@ -28,2 +29,3 @@ const defaultOptions = { | ||
name: 'Kano Desktop Shell', | ||
version: '0.0.0', | ||
}; | ||
@@ -33,4 +35,5 @@ | ||
class Shell { | ||
class Shell extends EventEmitter { | ||
constructor(opts) { | ||
super(); | ||
this.options = Object.assign({}, defaultOptions, opts); | ||
@@ -84,2 +87,3 @@ if (!this.options.root) { | ||
openDevtools: this.options.devMode, | ||
version: this.options.version, | ||
}); | ||
@@ -162,2 +166,4 @@ this.about.on('enable-dev-mode', () => { | ||
this.windowState.manage(this.window); | ||
this.emit('window-created', this.window); | ||
} | ||
@@ -164,0 +170,0 @@ |
{ | ||
"name": "@kano/desktop-shell", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237705
904