Skip to content

best way to save what you love

front: don't mangle and encode urls when sending to api

dumbmorone1fa32beb3eb
diff --git a/src/front/cobalt.js b/src/front/cobalt.js
index 183716cb..b3d3b7a8 100644
--- a/src/front/cobalt.js
+++ b/src/front/cobalt.js
@@ -1,4 +1,4 @@
-const version = 39;
+const version = 40;
const ua = navigator.userAgent.toLowerCase();
const isIOS = ua.match("iphone os");
@@ -358,7 +358,7 @@ async function download(url) {
eid("url-clear").style.display = "none";
eid("url-input-area").disabled = true;
let req = {
- url: encodeURIComponent(url.split("&")[0].split('%')[0]),
+ url,
aFormat: sGet("aFormat").slice(0, 4),
filenamePattern: sGet("filenamePattern"),
dubLang: false