Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active August 21, 2018 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjunichi/047e32a4eacee4d4ed23 to your computer and use it in GitHub Desktop.
Save kjunichi/047e32a4eacee4d4ed23 to your computer and use it in GitHub Desktop.
Electron

ウィンドウ表示位置を指定する

Dockに表示せず、メニューバーにメニューを出す

app.dock.hide();

Atom Shell

気になること

node0.11系の機能

ビルドはnode0.10系を要求してるのも謎。

app.on('ready', function() {
  app.commandLine.appendSwitch('js-flags', '--harmony_collections --harmony_generator');

main.jsでは有効にならないが、browserを作成し、この中でこれらのオプションが有効になる

モジュールは32ビット?

ネイティブモジュールの解説で、 node-gypでのコマンドオプションに--arch=ia32の指定がある

関連投稿

関連記事

Link

関連Gist

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment