1 line
1.3 KiB
JSON
1 line
1.3 KiB
JSON
|
{"ast":null,"code":"export function isImageValid(src) {\n return new Promise(function (resolve) {\n var img = document.createElement('img');\n img.onerror = function () {\n return resolve(false);\n };\n img.onload = function () {\n return resolve(true);\n };\n img.src = src;\n });\n}","map":{"version":3,"names":["isImageValid","src","Promise","resolve","img","document","createElement","onerror","onload"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/rc-image/es/util.js"],"sourcesContent":["export function isImageValid(src) {\n return new Promise(function (resolve) {\n var img = document.createElement('img');\n img.onerror = function () {\n return resolve(false);\n };\n img.onload = function () {\n return resolve(true);\n };\n img.src = src;\n });\n}"],"mappings":"AAAA,OAAO,SAASA,YAAYA,CAACC,GAAG,EAAE;EAChC,OAAO,IAAIC,OAAO,CAAC,UAAUC,OAAO,EAAE;IACpC,IAAIC,GAAG,GAAGC,QAAQ,CAACC,aAAa,CAAC,KAAK,CAAC;IACvCF,GAAG,CAACG,OAAO,GAAG,YAAY;MACxB,OAAOJ,OAAO,CAAC,KAAK,CAAC;IACvB,CAAC;IACDC,GAAG,CAACI,MAAM,GAAG,YAAY;MACvB,OAAOL,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;IACDC,GAAG,CAACH,GAAG,GAAGA,GAAG;EACf,CAAC,CAAC;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|