Skip to content

Commit 60ba723

Browse files
Force update fix
1 parent 920b59b commit 60ba723

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/client/js/input/special.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,6 @@ export default {
184184
});
185185
},
186186
"update": () => {
187-
checkUpdate();
187+
checkUpdate(true);
188188
}
189189
}

src/client/js/network/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ if (config.get(`updateCheck`)) {
1010
checkUpdate();
1111
}
1212

13-
export function checkUpdate () {
13+
export function checkUpdate (force = false) {
1414
get("https://intersystems-ru.github.io/webterminal/terminal.json", (data = {}) => {
1515
if (data.error || typeof data[`motd`] === "undefined")
1616
return;
17-
terminal.onAuth(() => handleNetworkData(data));
17+
terminal.onAuth(() => handleNetworkData(data, force));
1818
});
1919
}
2020

21-
function handleNetworkData (data) {
22-
if (!config.get(`updateCheck`)) {
21+
function handleNetworkData (data, force = false) {
22+
if (!config.get(`updateCheck`) && !force) {
2323
return;
2424
}
2525
input.clearPrompt();

0 commit comments

Comments
 (0)