mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Remove old data url matching
This commit is contained in:
parent
557c0a0784
commit
98ae7c842f
1 changed files with 0 additions and 5 deletions
|
|
@ -163,11 +163,6 @@ async function decryptData(cipher, base64) {
|
|||
|
||||
function infoForDataURL(url) {
|
||||
return new DataURL(url);
|
||||
let match = url.match(dataUrlRE);
|
||||
let info = match.groups;
|
||||
// info.params = new URLSearchParams(info?.groups.attrs?.substring(1).replace(/;/g, "&"));
|
||||
info.params = info.params ? JSON.parse('{"' + decodeURI(info.params?.substring(1)).replace(/"/g, '\\"').replace(/;/g, '","').replace(/=/g,'":"') + '"}') : info.params;
|
||||
return info;
|
||||
}
|
||||
|
||||
var BASE64_MARKER = 'base64';
|
||||
|
|
|
|||
Loading…
Reference in a new issue