Fixed API test cases for missing language pack and jasmin test case.

This commit is contained in:
Akshay Joshi
2020-01-20 16:14:12 +05:30
parent 23e218f1b5
commit b4b54d6b94
4 changed files with 32 additions and 19 deletions

View File

@@ -91,7 +91,10 @@ _.extend(pgBrowser, {
},
logout_inactivity_user: function() {
window.location.href = pgBrowser.utils.logout_url;
if (!_.isUndefined(pgBrowser.utils) &&
!_.isUndefined(pgBrowser.utils.logout_url)) {
window.location.href = pgBrowser.utils.logout_url;
}
},
/* The daemon will track and logout when timeout occurs */