mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
fix(debug-data): Do not include curl history in the feedback email
This commit is contained in:
parent
d73ff30510
commit
22ba703c53
1 changed files with 0 additions and 10 deletions
|
@ -118,14 +118,6 @@ class DeveloperBarStore extends NylasStore
|
||||||
|
|
||||||
user = AccountStore.current().name
|
user = AccountStore.current().name
|
||||||
|
|
||||||
debugData = JSON.stringify({
|
|
||||||
queries: _.values(@curlHistory())
|
|
||||||
}, null, '\t')
|
|
||||||
|
|
||||||
# Remove API tokens from URLs included in the debug data
|
|
||||||
# This regex detects ://user:pass@ and removes it.
|
|
||||||
debugData = debugData.replace(/:\/\/(\w)*:(\w)?@/g, '://')
|
|
||||||
|
|
||||||
draft = new Message
|
draft = new Message
|
||||||
from: [AccountStore.current().me()]
|
from: [AccountStore.current().me()]
|
||||||
to: [
|
to: [
|
||||||
|
@ -153,8 +145,6 @@ class DeveloperBarStore extends NylasStore
|
||||||
I'm using Nylas Mail #{atom.getVersion()} and my platform is #{process.platform}-#{process.arch}.<br/>
|
I'm using Nylas Mail #{atom.getVersion()} and my platform is #{process.platform}-#{process.arch}.<br/>
|
||||||
--<br/>
|
--<br/>
|
||||||
#{user}<br/>
|
#{user}<br/>
|
||||||
-- Extra Debugging Data --<br/>
|
|
||||||
#{debugData}
|
|
||||||
"""
|
"""
|
||||||
DatabaseStore.persistModel(draft).then ->
|
DatabaseStore.persistModel(draft).then ->
|
||||||
Actions.composePopoutDraft(draft.clientId)
|
Actions.composePopoutDraft(draft.clientId)
|
||||||
|
|
Loading…
Reference in a new issue