mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 04:17:31 +09:00
[minor fix] DevTools - Throws an error ("String contains an invalid character")
https://github.com/MoonchildProductions/moebius/pull/162
This commit is contained in:
parent
fadd7deef2
commit
4f34dc2b96
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ exports.getFormDataSections = Task.async(function* (headers, uploadHeaders, post
|
||||||
exports.formDataURI = function (mimeType, encoding, text) {
|
exports.formDataURI = function (mimeType, encoding, text) {
|
||||||
if (!encoding) {
|
if (!encoding) {
|
||||||
encoding = "base64";
|
encoding = "base64";
|
||||||
text = btoa(text);
|
text = btoa(unescape(encodeURIComponent(text)));
|
||||||
}
|
}
|
||||||
return "data:" + mimeType + ";" + encoding + "," + text;
|
return "data:" + mimeType + ";" + encoding + "," + text;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue