Skip to content

Commit 1f460d5

Browse files
Let's not hard code a URL in, for now
1 parent 896a432 commit 1f460d5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/local/offline.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
var retryParameterValue = url.searchParams.get('retry');
2020

2121
// Provide a default value if the 'retry' parameter is not present
22-
return retryParameterValue !== null ? retryParameterValue : 'https://www.sploder.net/update';
22+
return retryParameterValue !== null ? retryParameterValue : '_[[URL]]_/update';
2323
}
2424

2525

src/local/start.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// If the URL is not provided, redirect to the update page
1616
if (url == null) {
17-
window.location.href = "https://www.sploder.net/update";
17+
window.location.href = "_[[URL]]_/update";
1818
}
1919

2020
var page;
@@ -69,7 +69,7 @@
6969

7070

7171
const frame = document.getElementById('content-frame');
72-
var url = "https://www.sploder.net/php/ping.php";
72+
var url = "_[[URL]]_/php/ping.php";
7373
var xhttp = new XMLHttpRequest();
7474
xhttp.onreadystatechange = function() {
7575

src/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function createWindow() {
122122
} else {
123123
startpath = "/../../resources/src/local/start.html?url="
124124
}
125-
win.loadURL("file:///" + app.getAppPath().replace(/\\/g, '/') + startpath + "https://www.sploder.net/update");
125+
win.loadURL("file:///" + app.getAppPath().replace(/\\/g, '/') + startpath + "_[[URL]]_/update");
126126
win.webContents.on('did-finish-load', () => {
127127
win.show();
128128
});

0 commit comments

Comments
 (0)