Skip to content

Commit f9e0f82

Browse files
Update settings.js
1 parent bd6f54f commit f9e0f82

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

static/settings.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Add this to the top of settings.js to debug
2+
console.log('Settings page loaded');
3+
4+
// Check if the GET request works
5+
fetch('/settings/api/da-config')
6+
.then(response => {
7+
console.log('GET /settings/api/da-config - Status:', response.status);
8+
if (response.status === 405) {
9+
console.error('GET method not allowed!');
10+
}
11+
});
12+
13+
114
// Load current settings on page load
215
document.addEventListener('DOMContentLoaded', async () => {
316
try {

0 commit comments

Comments
 (0)