1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Removed another function that is no longer required hex()

This commit is contained in:
Neil Burrows 2020-11-08 12:41:27 +00:00
parent adb9f209bb
commit 3a1a47cb6c

View file

@ -83,20 +83,6 @@ export default function (page, providerId, options) {
loading.hide();
}
function hex(buffer) {
const hexCodes = [];
const view = new DataView(buffer);
for (let i = 0; i < view.byteLength; i += 4) {
const value = view.getUint32(i);
const stringValue = value.toString(16);
const paddedValue = ('00000000' + stringValue).slice(-'00000000'.length);
hexCodes.push(paddedValue);
}
return hexCodes.join('');
}
function submitLoginForm() {
loading.show();
const info = {