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 f4271ef + e171f02 commit dcaba04Copy full SHA for dcaba04
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