diff --git a/src/decrypt/kgm.ts b/src/decrypt/kgm.ts index 4a1eedd..f12e0df 100644 --- a/src/decrypt/kgm.ts +++ b/src/decrypt/kgm.ts @@ -22,7 +22,7 @@ const VprMaskDiff = [ export async function Decrypt(file: File, raw_filename: string, raw_ext: string): Promise { - if (window?.location?.protocol === "file:") { + if (self.location.protocol === "file:") { throw Error("请使用 CLI版本 进行解锁") }