Skip to content

Commit

Permalink
add prefix namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
  • Loading branch information
Nakul Manchanda committed Apr 22, 2020
1 parent 64a6653 commit 4a846f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ export class LoginComponent implements OnInit {
}

private isIdle(): boolean {
const lastActive = parseInt(window.localStorage.getItem('lastActive') || '0');
const lastActive = parseInt(window.localStorage.getItem('ZoweZLUX.lastActive') || '0');
let idle = (Date.now() - lastActive) > ACTIVITY_IDLE_TIMEOUT_MS;
this.logger.debug("ZWED5304I", this.lastActive, Date.now(), idle); //this.logger.debug(`User lastActive=${this.lastActive}, now=${Date.now()}, idle={idle}`);
this.logger.debug("ZWED5304I", lastActive, Date.now(), idle); //this.logger.debug(`User lastActive=${lastActive}, now=${Date.now()}, idle={idle}`);
return idle;
}

Expand Down Expand Up @@ -217,7 +217,7 @@ export class LoginComponent implements OnInit {
detectActivity(): void {
this.logger.debug('ZWED5305I'); //this.logger.debug('User activity detected');
this.lastActive = Date.now();
window.localStorage.setItem('lastActive',this.lastActive.toString());
window.localStorage.setItem('ZoweZLUX.lastActive',this.lastActive.toString());
if (this.idleWarnModal) {
this.popupManager.removeReport(this.idleWarnModal.id);
this.idleWarnModal = undefined;
Expand Down

0 comments on commit 4a846f4

Please sign in to comment.