summaryrefslogtreecommitdiff
path: root/node_modules/abort-controller/browser.js
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-30 15:46:16 -0700
committer8cy <[email protected]>2020-04-30 15:46:16 -0700
commit3a4deac89054021b56ad5bd8005b2044cc085c98 (patch)
tree3dd6af8503e497e46180b6b5231674f36bdce9f2 /node_modules/abort-controller/browser.js
downloaduppity-3a4deac89054021b56ad5bd8005b2044cc085c98.tar.xz
uppity-3a4deac89054021b56ad5bd8005b2044cc085c98.zip
Up, up, uppity.
Diffstat (limited to 'node_modules/abort-controller/browser.js')
-rw-r--r--node_modules/abort-controller/browser.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/abort-controller/browser.js b/node_modules/abort-controller/browser.js
new file mode 100644
index 0000000..b0c5ec3
--- /dev/null
+++ b/node_modules/abort-controller/browser.js
@@ -0,0 +1,13 @@
+/*globals self, window */
+"use strict"
+
+/*eslint-disable @mysticatea/prettier */
+const { AbortController, AbortSignal } =
+ typeof self !== "undefined" ? self :
+ typeof window !== "undefined" ? window :
+ /* otherwise */ undefined
+/*eslint-enable @mysticatea/prettier */
+
+module.exports = AbortController
+module.exports.AbortSignal = AbortSignal
+module.exports.default = AbortController