File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,6 +184,6 @@ export default {
184184 } ) ;
185185 } ,
186186 "update" : ( ) => {
187- checkUpdate ( ) ;
187+ checkUpdate ( true ) ;
188188 }
189189}
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments