Created
April 14, 2017 16:56
-
-
Save triacontane/df61a7ff9901e0dd38246fe7ee90e5da to your computer and use it in GitHub Desktop.
nw.jsでウィンドウクローズ前に任意の処理を行う
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!Utils.isNwjs()) return; | |
var nwWin = require('nw.gui').Window.get(); | |
nwWin.on('close', function() { | |
// do something | |
nwWin.close(true); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment