Skip to content

Commit

Permalink
Fetch Data from Local Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberSphinxxx committed Nov 13, 2024
1 parent e60b521 commit 4749d48
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions password_manager/password_manager_view/password_manager_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,17 @@ <h1>Saved Passwords</h1>
}

loadPasswords();

function getSavedPasswords() {
let savedPasswords;
try {
savedPasswords = JSON.parse(localStorage.getItem('savedPasswords') || '[]');
} catch (error) {
console.error('Error parsing saved passwords:', error);
savedPasswords = [];
}
return savedPasswords;
}
</script>
</body>
</html>

0 comments on commit 4749d48

Please sign in to comment.