mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
17 lines
342 B
JavaScript
17 lines
342 B
JavaScript
import WebTorrent from "./webtorrent.min.js";
|
|
|
|
const globalScope =
|
|
(typeof window !== "undefined" && window) ||
|
|
(typeof globalThis !== "undefined" && globalThis) ||
|
|
null;
|
|
|
|
if (
|
|
globalScope &&
|
|
typeof globalScope.WebTorrent !== "function" &&
|
|
typeof WebTorrent === "function"
|
|
) {
|
|
globalScope.WebTorrent = WebTorrent;
|
|
}
|
|
|
|
export {};
|