mirror of
https://gitlab.com/vyla-entertainment/TV.git
synced 2026-11-21 15:35:37 -05:00
ported sdk and this works
This commit is contained in:
4
.build/shim/crypto.js
Normal file
4
.build/shim/crypto.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const webcrypto = globalThis.crypto;
|
||||
export function createHash() { throw new Error('unsupported'); }
|
||||
export function createDecipheriv() { throw new Error('unsupported'); }
|
||||
export default { webcrypto, createHash, createDecipheriv };
|
||||
7
.build/shim/inject.js
Normal file
7
.build/shim/inject.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Buffer } from 'buffer';
|
||||
globalThis.Buffer = globalThis.Buffer || Buffer;
|
||||
globalThis.process = globalThis.process || { env: {} };
|
||||
if (!AbortSignal.timeout) {
|
||||
AbortSignal.timeout = ms => { const c = new AbortController(); setTimeout(() => c.abort(), ms); return c.signal; };
|
||||
}
|
||||
export { Buffer };
|
||||
Reference in New Issue
Block a user