mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
chore: use eventsource polyfil for headers support
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
import { EventSourcePolyfill as EventSource } from "event-source-polyfill";
|
||||
//const EventSource = NativeEventSource || EventSourcePolyfill;
|
||||
// OR: may also need to set as global property
|
||||
//global.EventSource = NativeEventSource || EventSourcePolyfill;
|
||||
|
||||
global.HTMLParser = new DOMParser().parseFromString(
|
||||
"<body></body>",
|
||||
"text/html"
|
||||
@@ -19,16 +24,16 @@ async function initializeDatabase() {
|
||||
// SSE_HOST: "https://events.streetwriters.co",
|
||||
// });
|
||||
// } else {
|
||||
// db.host({
|
||||
// API_HOST: "http://localhost:5264",
|
||||
// AUTH_HOST: "http://localhost:8264",
|
||||
// SSE_HOST: "http://localhost:7264",
|
||||
// });
|
||||
// // db.host({
|
||||
// // API_HOST: "http://192.168.10.29:5264",
|
||||
// // AUTH_HOST: "http://192.168.10.29:8264",
|
||||
// // SSE_HOST: "http://192.168.10.29:7264",
|
||||
// // });
|
||||
// db.host({
|
||||
// API_HOST: "http://localhost:5264",
|
||||
// AUTH_HOST: "http://localhost:8264",
|
||||
// SSE_HOST: "http://localhost:7264",
|
||||
// });
|
||||
db.host({
|
||||
API_HOST: "http://192.168.10.29:5264",
|
||||
AUTH_HOST: "http://192.168.10.29:8264",
|
||||
SSE_HOST: "http://192.168.10.29:7264",
|
||||
});
|
||||
// }
|
||||
|
||||
await db.init();
|
||||
|
||||
Reference in New Issue
Block a user