Explicitly disable prompt().
This commit is contained in:
parent
3f1d540077
commit
79802c2919
1 changed files with 4 additions and 0 deletions
|
@ -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.')
|
||||||
|
|
Loading…
Reference in a new issue