Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 8251d90

Browse files
committed
Fixed LAMD default url bug
1 parent 372b158 commit 8251d90

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,8 @@ function saveSettings() {
895895
appSettings.set('downloads.concurrent', $('#downloads-concurrent').val());
896896

897897
appSettings.set('lamd.enabled', ($('#lamd-enabled').is(':checked') ? true : false) )
898+
899+
if ($('#lamd-url').val().length < 21) $('#lamd-url').val('http://localhost:8280');
898900
appSettings.set('lamd.url', $('#lamd-url').val());
899901

900902
}

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ function createWindow() {
5656
template: '%%replayid%%',
5757
concurrent: 1
5858
});
59+
appSettings.set('lamd', {
60+
enabled: false,
61+
url: 'http://localhost:8280'
62+
});
63+
5964
}
6065

6166
if (!appSettings.get('downloads.path')) {
@@ -69,7 +74,7 @@ function createWindow() {
6974
if (!appSettings.get('lamd.enabled')) {
7075
appSettings.set('lamd', {
7176
enabled: false,
72-
url: 'localhost'
77+
url: 'http://localhost:8280'
7378
});
7479
}
7580

0 commit comments

Comments
 (0)