Skip to content

Commit

Permalink
update packages and add new proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Feb 25, 2023
1 parent 49ab941 commit bb028b5
Show file tree
Hide file tree
Showing 5 changed files with 2,199 additions and 118 deletions.
8 changes: 1 addition & 7 deletions app/assets/js/api/fileApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,7 @@ const downloadFile = async (url, path) => {
});
} catch (e) {
console.debug("downloadFile (global): using proxy");
response = await fetch(
"https://Cloudclient-Proxy.ktibow.repl.co/mod?" +
new URLSearchParams({
file: path.split("/").at(-1),
url: url.split("//").at(-1),
}).toString()
);
response = await fetch("https://mart-proxy.ktibow.workers.dev/?url=" + encodeURIComponent(url));
}
window.dlLocks.splice(window.dlLocks.indexOf(path), 1);
console.log(`${new Date().toISOString()}: done downloading file`);
Expand Down
Loading

0 comments on commit bb028b5

Please sign in to comment.