1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-12 10:04:44 +01:00

dont refresh when pin locked

This commit is contained in:
Kyle Spearrin 2019-02-25 14:27:20 -05:00
parent f914e55cf5
commit 5657105291
2 changed files with 2 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 2b931963cd8dbebdcbdd6a418ac3ef72adb73539
Subproject commit fc2f64ee367b65e35e683ece0c91c05b5fb83bc5

View File

@ -39,7 +39,7 @@ export class LockComponent extends BaseLockComponent implements OnDestroy {
async ngOnInit() {
await super.ngOnInit();
this.route.queryParams.subscribe((params) => {
if (params.refresh === 'true') {
if (params.refresh === 'true' && !this.lockService.pinLocked) {
// Refresh the renderer window when locked to enure that all purged memory is cleaned up
this.ngZone.runOutsideAngular(() => {
this.reloadInterval = window.setInterval(async () => {