mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 13:44:53 +08:00
hack(plugin-auth): temporarily disable confirmation dialog for plugin auth
This commit is contained in:
parent
c0bec3fd0f
commit
cd045569cb
1 changed files with 9 additions and 9 deletions
|
@ -400,15 +400,15 @@ class NylasAPI
|
|||
if result.authed
|
||||
return Promise.resolve()
|
||||
else
|
||||
return @_requestPluginAuth(pluginName, account).then =>
|
||||
@makeRequest({
|
||||
returnsModel: false,
|
||||
method: "POST",
|
||||
accountId: account.id,
|
||||
path: "/auth/plugin",
|
||||
body: {client_id: pluginId},
|
||||
json: true
|
||||
})
|
||||
# return @_requestPluginAuth(pluginName, account).then =>
|
||||
return @makeRequest({
|
||||
returnsModel: false,
|
||||
method: "POST",
|
||||
accountId: account.id,
|
||||
path: "/auth/plugin",
|
||||
body: {client_id: pluginId},
|
||||
json: true
|
||||
})
|
||||
|
||||
_requestPluginAuth: (pluginName, account) ->
|
||||
{dialog} = require('electron').remote
|
||||
|
|
Loading…
Add table
Reference in a new issue