mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
6d1170f06c
Co-authored-by: Mark Stacey <markjstacey@gmail.com> Co-authored-by: ricky <ricky.miller@gmail.com> Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com> Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> Co-authored-by: legobt <6wbvkn0j@anonaddy.me> Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
20 lines
643 B
Diff
20 lines
643 B
Diff
diff --git a/browser.js b/browser.js
|
|
index b0c5ec37d9b76ca561a0a5391a07226ebc6a2b48..b61071bb3de94c61e98ffc49d9257c58c5f0c792 100644
|
|
--- a/browser.js
|
|
+++ b/browser.js
|
|
@@ -2,12 +2,7 @@
|
|
"use strict"
|
|
|
|
/*eslint-disable @mysticatea/prettier */
|
|
-const { AbortController, AbortSignal } =
|
|
- typeof self !== "undefined" ? self :
|
|
- typeof window !== "undefined" ? window :
|
|
- /* otherwise */ undefined
|
|
+const { AbortController } = globalThis;
|
|
/*eslint-enable @mysticatea/prettier */
|
|
|
|
-module.exports = AbortController
|
|
-module.exports.AbortSignal = AbortSignal
|
|
-module.exports.default = AbortController
|
|
+module.exports = { AbortController }
|