Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) No edit summary |
||
Line 1:
(function() {
'use strict';
Line 14 ⟶ 15:
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
z-index: 9999;
max-width: 300px;
}
#word-display {
Line 60 ⟶ 62:
async fetchWords() {
try {
const response = await fetch('http://localhost:8082/output'
mode: 'cors', // This line is added to explicitly request CORS
});
if (!response.ok) {
throw new Error('Network response was not ok');
Line 69 ⟶ 73:
} catch (error) {
console.error('Error fetching words:', error);
this.debugElement.textContent = `Error: ${error.message}. CORS issue likely. Check console and ensure server allows CORS.`;
this.displayElement.textContent = 'Unable to fetch words. See debug info.';
}
}
Line 88 ⟶ 93:
}
} else {
this.displayElement.textContent = 'No
}
|