buddy

node MVC discord bot
Log | Files | Refs | README

browser.js (394B)


      1 /*globals self, window */
      2 "use strict"
      3 
      4 /*eslint-disable @mysticatea/prettier */
      5 const { AbortController, AbortSignal } =
      6     typeof self !== "undefined" ? self :
      7     typeof window !== "undefined" ? window :
      8     /* otherwise */ undefined
      9 /*eslint-enable @mysticatea/prettier */
     10 
     11 module.exports = AbortController
     12 module.exports.AbortSignal = AbortSignal
     13 module.exports.default = AbortController