fixed the issue of rendering url valid when it contains white spaces at its begining

This commit is contained in:
huangjx
2022-04-20 21:11:09 +08:00
parent 78487563f3
commit aa1bf42ccc
4 changed files with 8 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ export default {
let element = event.target;
let formWrapper = element.closest("form");
let formData = helper.getData(formWrapper);
let inputValue = formData["text-input-value"];
let inputValue = formData["text-input-value"].trim();
let message;
if (formData.type === "youtube-dl") {
formData["audio-only"] = "";