mirror of
https://github.com/Sneed-Group/old-test-homepage
synced 2024-12-23 03:35:15 -06:00
Update 'script.js'
This commit is contained in:
parent
5d929e4ec4
commit
32b6c4751d
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ async function fetchBiblePassage() {
|
||||||
const response = await fetch('https://labs.bible.org/api/?passage=random&formatting=plain&type=text');
|
const response = await fetch('https://labs.bible.org/api/?passage=random&formatting=plain&type=text');
|
||||||
textData = await response.text();
|
textData = await response.text();
|
||||||
}
|
}
|
||||||
document.getElementById('biblepassage').textContent = `${textData}“`;
|
document.getElementById('biblepassage').textContent = `${textData}`;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching Bible passage:', error);
|
console.error('Error fetching Bible passage:', error);
|
||||||
// Handle the error gracefully, e.g., display an error message to the user
|
// Handle the error gracefully, e.g., display an error message to the user
|
||||||
|
|
Loading…
Reference in a new issue