summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scripts/sura-list.js34
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
+}