mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 10:28:18 -07:00
self.TextEncoder will never exist, so remove invalid check
This commit is contained in:
parent
f140d9fe06
commit
9bce0aea18
@ -84,9 +84,6 @@ export default function (page, providerId, options) {
|
||||
}
|
||||
|
||||
function sha256(str) {
|
||||
if (!self.TextEncoder) {
|
||||
return Promise.resolve('');
|
||||
}
|
||||
|
||||
const buffer = new TextEncoder('utf-8').encode(str);
|
||||
return crypto.subtle.digest('SHA-256', buffer).then(function (hash) {
|
||||
|
Loading…
Reference in New Issue
Block a user