mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 01:12:39 +00:00
- Move from root publishing to clean `dist/` directory - Create `scripts/build-dist.mjs` to orchestrate build and copy assets - Update `package.json` build script - Update `netlify.toml` to publish `dist/` - Ignore `dist/` in `.gitignore` Co-authored-by: PR0M3TH3AN <[email protected]>
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 {};
|