Merge pull request #4486 from MetaMask/i4475-ClearUnknownIdentities
Clear unknown identitiesfeature/default_network_editable
commit
ddce3d148e
@ -0,0 +1,22 @@ |
||||
class BugNotifier { |
||||
notify (uri, message) { |
||||
return postData(uri, message) |
||||
} |
||||
} |
||||
|
||||
function postData(uri, data) { |
||||
return fetch(uri, { |
||||
body: JSON.stringify(data), // must match 'Content-Type' header
|
||||
credentials: 'same-origin', // include, same-origin, *omit
|
||||
headers: { |
||||
'content-type': 'application/json', |
||||
}, |
||||
method: 'POST', // *GET, POST, PUT, DELETE, etc.
|
||||
mode: 'cors', // no-cors, cors, *same-origin
|
||||
}) |
||||
} |
||||
|
||||
const notifier = new BugNotifier() |
||||
|
||||
module.exports = notifier |
||||
|
Loading…
Reference in new issue