Fixed issue that broke the offline dialog
Javascript is not python...
This commit is contained in:
parent
fe34bdc656
commit
3a0aac3c36
1 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ function DataUpdater(allViewModels) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (viewModel.hasattr("onServerDisconnect")) {
|
||||
if (viewModel.hasOwnProperty("onServerDisconnect")) {
|
||||
if (!viewModel.onServerDisconnect()) {
|
||||
handled = true;
|
||||
}
|
||||
|
|
@ -71,7 +71,7 @@ function DataUpdater(allViewModels) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (viewModel.hasattr("onServerDisconnect")) {
|
||||
if (viewModel.hasOwnProperty("onServerDisconnect")) {
|
||||
if (!viewModel.onServerDisconnect()) {
|
||||
handled = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue