fix db worker
This commit is contained in:
1 parent
fc8455e353
commit
154c55a7bb
4 files changed
+11
-8
No files matched your search
@@ -6,6 +6,13 @@ export const worker = new Worker(new URL('./db-worker.ts', import.meta.url), {
|
||||
type: 'module',
|
||||
});
|
||||
|
||||
worker.onerror = (ee) => {
|
||||
console.log(ee)
|
||||
};
|
||||
|
||||
worker.onmessageerror = (ee) => {
|
||||
console.log(ee)
|
||||
};
|
||||
worker.onmessage = (e) => {
|
||||
if (e.data.type === 'success') {
|
||||
const app = document.getElementById('app');
|
||||
@@ -17,6 +24,7 @@ worker.onmessage = (e) => {
|
||||
}
|
||||
};
|
||||
|
||||
worker.postMessage({ type: 'start' });
|
||||
|
||||
// Каркас приложения: топ-бар + бургер-меню + две страницы (Главная / Синхронизация).
|
||||
|
||||
|
||||
Reference in new issue
Block a user