aboutsummaryrefslogtreecommitdiff
path: root/static/connectivity.js
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2024-01-25 16:06:24 +0100
committerGravatar GitHub <noreply@github.com> 2024-01-25 16:06:24 +0100
commitd08d13f2c87b24fadb92e31c50dedc6e56c3c088 (patch)
treea2fd66aa0cdd091ad34a135cf8222847f025f6f3 /static/connectivity.js
parent9574c17ddc4c55ab191878164627c4501a565221 (diff)
downloadrss-bridge-d08d13f2c87b24fadb92e31c50dedc6e56c3c088.tar.gz
rss-bridge-d08d13f2c87b24fadb92e31c50dedc6e56c3c088.tar.zst
rss-bridge-d08d13f2c87b24fadb92e31c50dedc6e56c3c088.zip
refactor: introduce http Request object (#3926)
Diffstat (limited to 'static/connectivity.js')
-rw-r--r--static/connectivity.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/static/connectivity.js b/static/connectivity.js
index 89f01f01..55ee9434 100644
--- a/static/connectivity.js
+++ b/static/connectivity.js
@@ -4,7 +4,7 @@ var abort = false;
window.onload = function() {
- fetch(remote + '/index.php?action=list').then(function(response) {
+ fetch(remote + '/?action=list').then(function(response) {
return response.text()
}).then(function(data){
processBridgeList(data);
@@ -46,9 +46,9 @@ function buildTable(bridgeList) {
var td_bridge = document.createElement('td');
td_bridge.innerText = bridgeList.bridges[bridge].name;
- // Link to the actual bridge on index.php
+ // Link to the actual bridge on frontpage
var a = document.createElement('a');
- a.href = remote + "/index.php?show_inactive=1#bridge-" + bridge;
+ a.href = remote + "/?show_inactive=1#bridge-" + bridge;
a.target = '_blank';
a.innerText = '[Show]';
a.style.marginLeft = '5px';
@@ -104,7 +104,7 @@ function checkNextBridgeAsync() {
msg.getElementsByTagName('span')[0].textContent = 'Processing ' + bridge + '...';
- fetch(remote + '/index.php?action=Connectivity&bridge=' + bridge)
+ fetch(remote + '/?action=Connectivity&bridge=' + bridge)
.then(function(response) { return response.text() })
.then(JSON.parse)
.then(processBridgeResultAsync)