We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e5a53e + dcaba04 commit 1d0e88bCopy full SHA for 1d0e88b
agentic_security/static/main.js
@@ -130,7 +130,12 @@ var app = new Vue({
130
},
131
acceptConsent() {
132
this.showConsentModal = false; // Close the modal
133
- localStorage.setItem('consentGiven', 'true'); // Save consent to local storage
+
134
+ try {
135
+ localStorage.setItem('consentGiven', 'true'); // Save consent to local storage
136
+ } catch (e) {
137
+ this.showToast('Failed to save consent', 'error'); // Show error if saving fails
138
+ }
139
140
141
saveStateToLocalStorage() {
0 commit comments