mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
self.TextEncoder will never exist, so remove invalid check
This commit is contained in:
parent
f140d9fe06
commit
9bce0aea18
1 changed files with 0 additions and 3 deletions
|
@ -84,9 +84,6 @@ export default function (page, providerId, options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function sha256(str) {
|
function sha256(str) {
|
||||||
if (!self.TextEncoder) {
|
|
||||||
return Promise.resolve('');
|
|
||||||
}
|
|
||||||
|
|
||||||
const buffer = new TextEncoder('utf-8').encode(str);
|
const buffer = new TextEncoder('utf-8').encode(str);
|
||||||
return crypto.subtle.digest('SHA-256', buffer).then(function (hash) {
|
return crypto.subtle.digest('SHA-256', buffer).then(function (hash) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue