mirror of
https://github.com/Lolendor/reVCDOS.git
synced 2026-10-10 11:53:11 +08:00
Update SHA256 sums fetch URL to dynamic path
This commit is contained in:
Vendored
+1
-1
@@ -566,7 +566,7 @@ disclaimerCheckbox.addEventListener('change', async (inputEvent) => {
|
||||
try {
|
||||
const file = e.target.files[0];
|
||||
if (file) {
|
||||
const sha256sums = (await (await fetch("https://cdn.dos.zone/vcsky/sha256sums.txt")).text()).toLowerCase();
|
||||
const sha256sums = (await (await fetch(`${replaceFetch.to}sha256sums.txt`)).text()).toLowerCase();
|
||||
const arrayBuffer = await file.arrayBuffer();
|
||||
if (window.crypto && window.crypto.subtle) {
|
||||
const hashBuffer = await window.crypto.subtle.digest('SHA-256', arrayBuffer);
|
||||
|
||||
Reference in New Issue
Block a user