Explicitly disable prompt().

This commit is contained in:
Cheng Zhao 2014-03-01 20:05:52 +08:00
parent 3f1d540077
commit 79802c2919

View file

@ -48,3 +48,7 @@ window.confirm = (message, title='') ->
dialog = remote.require 'dialog' dialog = remote.require 'dialog'
buttons = ['OK', 'Cancel'] buttons = ['OK', 'Cancel']
not dialog.showMessageBox remote.getCurrentWindow(), {message, title, buttons} not dialog.showMessageBox remote.getCurrentWindow(), {message, title, buttons}
# But we do not support prompt().
window.prompt = ->
throw new Error('prompt() is and will not be supported in atom-shell.')