mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-07-10 05:28:37 +02:00
Merge pull request #184 from nemanjaASE/issue-174-missing-error-handling
Add missing error handling in main.js (acceptConsent)
This commit is contained in:
@@ -130,7 +130,12 @@ var app = new Vue({
|
|||||||
},
|
},
|
||||||
acceptConsent() {
|
acceptConsent() {
|
||||||
this.showConsentModal = false; // Close the modal
|
this.showConsentModal = false; // Close the modal
|
||||||
localStorage.setItem('consentGiven', 'true'); // Save consent to local storage
|
|
||||||
|
try {
|
||||||
|
localStorage.setItem('consentGiven', 'true'); // Save consent to local storage
|
||||||
|
} catch (e) {
|
||||||
|
this.showToast('Failed to save consent', 'error'); // Show error if saving fails
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
saveStateToLocalStorage() {
|
saveStateToLocalStorage() {
|
||||||
|
|||||||
Reference in New Issue
Block a user