diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-10-31 14:20:01 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-10-31 14:20:01 -0400 |
| commit | 140b1ef1a7b110178aebe17334353fa803d2ede7 (patch) | |
| tree | b5dd5d457b63abcc6cff3742d76ba0c8b5e85b8b /www/js/LoginCtrl.js | |
| parent | d6a0a698ea53413643f439dcaa945b5a7c4ad095 (diff) | |
#857 flush cache when switching servers
Diffstat (limited to 'www/js/LoginCtrl.js')
| -rw-r--r-- | www/js/LoginCtrl.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index cd6861a8..11474f2d 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -594,6 +594,18 @@ function mobilePinConfig () { function saveItems(showalert) { + NVR.flushAPICache() + .then (function() { + _saveItems(showalert); + }) + .catch (function(err) { + NVR.debug ('Error clearing cache:'+JSON.stringify(err)); + _saveItems(showalert); + }); + + } + function _saveItems(showalert) { + //console.log ("*********** SAVE ITEMS CALLED "); //console.log('Saving login'); |
