mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-01-21 20:52:11 +01:00
fix building app
This commit is contained in:
parent
b9f2155ded
commit
98e0167038
@ -1,5 +1,5 @@
|
|||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import {app, BrowserWindow, globalShortcut, Tray, shell, dialog} from 'electron';
|
import {app, BrowserWindow, globalShortcut, Tray, shell, dialog, Menu} from 'electron';
|
||||||
import windowState = require('electron-window-state');
|
import windowState = require('electron-window-state');
|
||||||
import * as menubar from 'menubar';
|
import * as menubar from 'menubar';
|
||||||
import log from './log';
|
import log from './log';
|
||||||
@ -23,7 +23,7 @@ export class App {
|
|||||||
open() {
|
open() {
|
||||||
if (!IS_DARWIN) {
|
if (!IS_DARWIN) {
|
||||||
// Users can still access menu bar with pressing Alt key.
|
// Users can still access menu bar with pressing Alt key.
|
||||||
this.winsetMenu(Menu.getApplicationMenu());
|
this.win.setMenu(Menu.getApplicationMenu());
|
||||||
}
|
}
|
||||||
|
|
||||||
this.win.webContents.on('dom-ready', () => {
|
this.win.webContents.on('dom-ready', () => {
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
"@types/electron": "^1.4.35",
|
"@types/electron": "^1.4.35",
|
||||||
"@types/electron-window-state": "^2.0.28",
|
"@types/electron-window-state": "^2.0.28",
|
||||||
"@types/loglevel": "^1.4.29",
|
"@types/loglevel": "^1.4.29",
|
||||||
|
"@types/menubar": "^5.1.3",
|
||||||
"@types/mousetrap": "^1.5.33",
|
"@types/mousetrap": "^1.5.33",
|
||||||
"@types/node": "^7.0.12",
|
"@types/node": "^7.0.12",
|
||||||
"browserify": "^14.3.0",
|
"browserify": "^14.3.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user