diff options
author | altaf-creator <dev@altafcreator.com> | 2024-06-09 19:35:01 +0700 |
---|---|---|
committer | altaf-creator <dev@altafcreator.com> | 2024-06-09 19:35:01 +0700 |
commit | c54e3844e3b46776e408cd56cf8bf7dd194c7b9d (patch) | |
tree | 7c0efaa4a1ba66d319185bd5d48556d07f7d9f02 /src | |
parent | f4bf46f9ea1f77e13882a2e487dafd95c47e9296 (diff) |
why redirect to sura? fixed to sura.htmlmain
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts/sura-list.js | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/src/scripts/sura-list.js b/src/scripts/sura-list.js index abbae2e..eb03ac7 100644 --- a/src/scripts/sura-list.js +++ b/src/scripts/sura-list.js @@ -42,28 +42,14 @@ function loadMetadataButtons(xml) { var index = sura[i].getAttribute('index'); var tname = sura[i].getAttribute('tname'); - try { - process.versions['electron']; - - document.getElementById("sura-ul").innerHTML += ` - <li> - <table> - <tr> - <td class="number">${index}</td> - <td style="padding-left: 10px;"><a href="sura.html?sura=${index}" class="link">${tname}</a></td> - </tr> - </table> - </li>`; - } catch { - document.getElementById("sura-ul").innerHTML += ` - <li> - <table> - <tr> - <td class="number">${index}</td> - <td style="padding-left: 10px;"><a href="sura?sura=${index}" class="link">${tname}</a></td> - </tr> - </table> - </li>`; - } + document.getElementById("sura-ul").innerHTML += ` + <li> + <table> + <tr> + <td class="number">${index}</td> + <td style="padding-left: 10px;"><a href="sura.html?sura=${index}" class="link">${tname}</a></td> + </tr> + </table> + </li>`; } -}
\ No newline at end of file +} |