Files
Folo/apps/desktop/src/renderer/setup-file.ts
T
DIYgodandDIYgod 8b07a9a573 chore: desktop dir (#2924)
* chore: desktop dir

* chore: desktop src and configs

* chore: auto-fix linting and formatting issues

* fix: path

* fix: path

* fix: path

* fix: path

* fix

* fix

* fix

* test

* test

* test

* test

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: DIYgod <8266075+DIYgod@users.noreply.github.com>
2025-03-02 17:19:22 +08:00

22 lines
378 B
TypeScript

// @ts-nocheck
import "fake-indexeddb/auto"
import { enableMapSet } from "immer"
globalThis.window = {
location: new URL("https://example.com"),
__dbIsReady: true,
addEventListener: () => {},
get navigator() {
return globalThis.navigator
},
}
if (!globalThis.navigator) {
globalThis.navigator = {
onLine: true,
userAgent: "node",
}
}
enableMapSet()