File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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
124135document . addEventListener ( 'DOMContentLoaded' , async ( ) => {
125136 initBooks ( ) ;
137+ testFileAccess ( ) ;
126138
127139 // Load Genesis by default
128140 const genesisBook = bookManifest . find ( b => b . name === "Genesis" ) ;
You can’t perform that action at this time.
0 commit comments