summaryrefslogtreecommitdiff
path: root/std/hash
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2020-07-06 17:28:10 +0200
committerGitHub <noreply@github.com>2020-07-06 11:28:10 -0400
commitc7afbdaee2398f24204843e278bc9aefc5e6bdfd (patch)
treeb2c6cb8fefb0cd29469c2eb6a66605bf0f49b759 /std/hash
parent8788553247c9e819721193733137763e425593af (diff)
Fix scope in std/md5 (#6662)
Diffstat (limited to 'std/hash')
-rw-r--r--std/hash/md5.ts2
1 files changed, 1 insertions, 1 deletions
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");