UNPKG
diginext-utils
Version:
latest (4.1.8)
4.1.8
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.29
4.0.28
4.0.27
4.0.26
4.0.25
4.0.24
4.0.23
4.0.22
4.0.21
4.0.20
4.0.19
4.0.18
4.0.17
4.0.16
4.0.15
4.0.14
4.0.13
4.0.12
4.0.11
4.0.10
4.0.9
4.0.8
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.13.15
3.13.14
3.13.12
3.13.10
3.13.9
3.13.8
3.13.7
3.13.6
3.13.5
3.13.4
3.13.3
3.13.2
3.13.1
3.13.0
3.12.11
3.12.10
3.12.9
3.12.8
3.12.7
3.12.6
3.12.5
3.12.4
3.12.3
3.12.2
3.12.1
3.12.0
3.11.4
3.11.3
3.11.2
3.11.1
3.11.0
3.10.0
3.9.2
3.9.1
3.9.0
3.8.0
3.6.0
3.5.3
3.5.2
3.5.0
3.4.0
3.3.0
3.2.2
3.2.1
3.2.0
3.1.2
3.1.1
3.1.0
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.2.1
2.2.0
2.1.30
2.1.29
2.1.28
2.1.27
2.1.26
2.1.25
2.1.24
2.1.23
2.1.22
2.1.21
2.1.20
2.1.19
2.1.18
2.1.17
2.1.16
2.1.15
2.1.14
2.1.13
2.1.12
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.41
2.0.40
2.0.39
2.0.38
2.0.37
2.0.36
2.0.35
2.0.33
2.0.32
2.0.31
2.0.30
2.0.28
2.0.27
2.0.26
2.0.25
2.0.24
2.0.23
2.0.22
2.0.21
2.0.20
2.0.19
2.0.18
2.0.17
2.0.16
2.0.15
2.0.13
2.0.12
2.0.11
2.0.10
2.0.8
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.3
1.1.2
1.1.1
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.7
1.0.6
1.0.5
1.0.3
1.0.2
1.0.1
1.0.0
0.3.0
0.2.0
0.1.0
0.0.1
README.md
wearetopgroup.com
diginext-utils
/
esm
/
images
/
getUrlBypassCors.js
13 lines
(12 loc)
•
329 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
getUrlBypassCors
= (
imgUrl
) => {
try
{
const
src =
new
URL
(imgUrl); src.
searchParams
.
append
(
"cors"
,
`
${
Date
.now()}
`
);
return
src.
href
; }
catch
(error) {
// console.error(`getUrlByPassCors error`, error);
return
null
; } };
export
default
getUrlBypassCors;