Spaces:
Sleeping
Sleeping
fix: remove redundant bookDataService initialization
Browse files- bookDataService is already instantiated on export
- Remove unnecessary initialize() call that was causing errors
- src/app.js +1 -4
src/app.js
CHANGED
|
@@ -18,10 +18,7 @@ class ClozeReaderApp {
|
|
| 18 |
|
| 19 |
async init() {
|
| 20 |
try {
|
| 21 |
-
//
|
| 22 |
-
await this.bookDataService.initialize();
|
| 23 |
-
|
| 24 |
-
// Start the game
|
| 25 |
await this.gameEngine.initialize();
|
| 26 |
|
| 27 |
// Initialize chat interface
|
|
|
|
| 18 |
|
| 19 |
async init() {
|
| 20 |
try {
|
| 21 |
+
// Start the game directly - bookDataService is already initialized
|
|
|
|
|
|
|
|
|
|
| 22 |
await this.gameEngine.initialize();
|
| 23 |
|
| 24 |
// Initialize chat interface
|