payment-skill 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/dashboard.js +6 -0
package/package.json
CHANGED
package/public/dashboard.js
CHANGED
|
@@ -236,10 +236,13 @@ async function addBlockedDomain() {
|
|
|
236
236
|
const domain = document.getElementById('new-blocked-domain').value.trim();
|
|
237
237
|
if (!domain) return;
|
|
238
238
|
|
|
239
|
+
console.log('Adding blocked domain:', domain);
|
|
239
240
|
const result = await apiPost('/api/limits/domains', { domain, type: 'blocked' });
|
|
241
|
+
console.log('API result:', JSON.stringify(result, null, 2));
|
|
240
242
|
document.getElementById('new-blocked-domain').value = '';
|
|
241
243
|
|
|
242
244
|
if (result.controls) {
|
|
245
|
+
console.log('Controls received:', JSON.stringify(result.controls, null, 2));
|
|
243
246
|
updateDomainsList(result.controls.domains || []);
|
|
244
247
|
} else {
|
|
245
248
|
await loadLimits();
|
|
@@ -250,10 +253,13 @@ async function addAllowedDomain() {
|
|
|
250
253
|
const domain = document.getElementById('new-allowed-domain').value.trim();
|
|
251
254
|
if (!domain) return;
|
|
252
255
|
|
|
256
|
+
console.log('Adding allowed domain:', domain);
|
|
253
257
|
const result = await apiPost('/api/limits/domains', { domain, type: 'allowed' });
|
|
258
|
+
console.log('API result:', JSON.stringify(result, null, 2));
|
|
254
259
|
document.getElementById('new-allowed-domain').value = '';
|
|
255
260
|
|
|
256
261
|
if (result.controls) {
|
|
262
|
+
console.log('Controls received:', JSON.stringify(result.controls, null, 2));
|
|
257
263
|
updateDomainsList(result.controls.domains || []);
|
|
258
264
|
} else {
|
|
259
265
|
await loadLimits();
|