From c7afbdaee2398f24204843e278bc9aefc5e6bdfd Mon Sep 17 00:00:00 2001 From: crowlKats <13135287+crowlKats@users.noreply.github.com> Date: Mon, 6 Jul 2020 17:28:10 +0200 Subject: Fix scope in std/md5 (#6662) --- std/hash/md5.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/hash') diff --git a/std/hash/md5.ts b/std/hash/md5.ts index f7e55d961..0e7017bc9 100644 --- a/std/hash/md5.ts +++ b/std/hash/md5.ts @@ -241,7 +241,7 @@ export class Md5 { for (let i = 0; i < data.length; ++i) { dataString += String.fromCharCode(data[i]); } - return window.btoa(dataString); + return btoa(dataString); } default: throw new Error("md5: invalid format"); -- cgit v1.2.3