fix: .vpr/.kgm fail in worker

This commit is contained in:
Emmm Monster 2021-05-27 19:38:42 +08:00
parent 4bc0a10c09
commit a7aaf246ae
No known key found for this signature in database
GPG Key ID: C98279C83FB50DB9

View File

@ -22,7 +22,7 @@ const VprMaskDiff = [
export async function Decrypt(file: File, raw_filename: string, raw_ext: string): Promise<DecryptResult> { export async function Decrypt(file: File, raw_filename: string, raw_ext: string): Promise<DecryptResult> {
if (window?.location?.protocol === "file:") { if (self.location.protocol === "file:") {
throw Error("请使用 <a target='_blank' href='https://github.com/unlock-music/cli'>CLI版本</a> 进行解锁") throw Error("请使用 <a target='_blank' href='https://github.com/unlock-music/cli'>CLI版本</a> 进行解锁")
} }