Files
2026-06-16 10:49:18 +02:00

23 lines
342 B
JavaScript

import { initDB } from './db.js';
import {
getNextWord,
answerWord,
getSessionStats
} from './offline-engine.js';
import {
syncQueue
} from './sync.js';
await initDB();
window.Woordjes = {
getNextWord,
answerWord,
getSessionStats,
syncQueue
};
window.addEventListener('online', () => {
syncQueue();
});