File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ for (let i = 0; i < osData.length; i++) {
61
61
<h1 class="platform">${ osData [ i ] . name } </h1>
62
62
<p class="info" dir="rtl">${ osData [ i ] . info } </p>
63
63
<button onclick="newDownload('${ osData [ i ] . os } ')" style="width: fit-content;">
64
- <a href="${ osData [ i ] . link } " class="button1">تحميل</a>
64
+ <a href="${ osData [ i ] . link } " class="button1">تحميل</a>
65
65
</button>
66
66
<h5 class="vers">لغة ألف | نـ5.0.0</h5>
67
67
</div>
@@ -72,7 +72,7 @@ async function newDownload(currentOS) {
72
72
try {
73
73
const response = await fetch ( "https://api.ipify.org?format=json" ) ;
74
74
const data = await response . json ( ) ;
75
- const ip = data . ip ;
75
+ const ip = await data . ip ;
76
76
77
77
const locationResponse = await fetch ( `https://ipinfo.io/${ ip } /json` ) ;
78
78
const locationData = await locationResponse . json ( ) ;
You can’t perform that action at this time.
0 commit comments