mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
chore: experimental work on bridge libparakeet
This commit is contained in:
@@ -3,6 +3,7 @@ import { DECRYPTION_WORKER_ACTION_NAME } from './constants';
|
||||
|
||||
import type { CryptoFactory } from './crypto/CryptoBase';
|
||||
import { XiamiCrypto } from './crypto/xiami/xiami';
|
||||
import { QMC1Crypto } from './crypto/qmc/qmc_v1';
|
||||
|
||||
const bus = new WorkerServerBus();
|
||||
onmessage = bus.onmessage;
|
||||
@@ -10,9 +11,11 @@ onmessage = bus.onmessage;
|
||||
const decryptorFactories: CryptoFactory[] = [
|
||||
// Xiami (*.xm)
|
||||
() => new XiamiCrypto(),
|
||||
() => new QMC1Crypto(),
|
||||
];
|
||||
|
||||
bus.addEventHandler(DECRYPTION_WORKER_ACTION_NAME.DECRYPT, async (blobURI) => {
|
||||
debugger;
|
||||
const blob = await fetch(blobURI).then((r) => r.blob());
|
||||
|
||||
for (const factory of decryptorFactories) {
|
||||
|
||||
Reference in New Issue
Block a user