aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/bug-notifier.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-06-06 02:51:27 +0800
committerkumavis <aaron@kumavis.me>2018-06-06 02:51:27 +0800
commit20bdba3d1710a070d06c2a395f92d948b9396d47 (patch)
tree2eef359c3e3c3959339f043eb3c99a6b83b27dec /app/scripts/lib/bug-notifier.js
parent6247e54fcc11d4d8d857a977d00eee8012afb92f (diff)
downloadtangerine-wallet-browser-20bdba3d1710a070d06c2a395f92d948b9396d47.tar
tangerine-wallet-browser-20bdba3d1710a070d06c2a395f92d948b9396d47.tar.gz
tangerine-wallet-browser-20bdba3d1710a070d06c2a395f92d948b9396d47.tar.bz2
tangerine-wallet-browser-20bdba3d1710a070d06c2a395f92d948b9396d47.tar.lz
tangerine-wallet-browser-20bdba3d1710a070d06c2a395f92d948b9396d47.tar.xz
tangerine-wallet-browser-20bdba3d1710a070d06c2a395f92d948b9396d47.tar.zst
tangerine-wallet-browser-20bdba3d1710a070d06c2a395f92d948b9396d47.zip
diagnostics - rewrite bug-notifier as diagnostics-reporter
Diffstat (limited to 'app/scripts/lib/bug-notifier.js')
-rw-r--r--app/scripts/lib/bug-notifier.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/app/scripts/lib/bug-notifier.js b/app/scripts/lib/bug-notifier.js
deleted file mode 100644
index 4d305b894..000000000
--- a/app/scripts/lib/bug-notifier.js
+++ /dev/null
@@ -1,22 +0,0 @@
-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
-