Skip to content

Commit b2e3fed

Browse files
commit
1 parent ca2ed04 commit b2e3fed

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

bible/data/books/genesis.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"Genesis": {
33
"1": {
4-
"1": "In the beginning, God created the heavens and the earth...",
4+
"1": "In the beginning God created the heavens and the earth.",
55
"2": "The earth was formless and void..."
66
},
77
"2": {
88
"1": "Thus the heavens and the earth were completed..."
99
}
1010
}
11-
}
11+
}

bible/script.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,21 @@ function initBooks() {
120120
.join('');
121121
}
122122

123+
async function testFileAccess() {
124+
try {
125+
const response = await fetch('data/books/genesis.json');
126+
console.log('HTTP status:', response.status);
127+
const text = await response.text();
128+
console.log('File content:', text);
129+
} catch (error) {
130+
console.error('File access error:', error);
131+
}
132+
}
133+
123134
// Start the application
124135
document.addEventListener('DOMContentLoaded', async () => {
125136
initBooks();
137+
testFileAccess();
126138

127139
// Load Genesis by default
128140
const genesisBook = bookManifest.find(b => b.name === "Genesis");

0 commit comments

Comments
 (0)