Skip to content

Commit 14f7c45

Browse files
committed
some fixes for desktop app
1 parent 88258e0 commit 14f7c45

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

packages/raga-app/src/renderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
/* eslint-disable simple-import-sort/imports */
3030

31-
import "@adahiya/raga-web-app/src/index.scss";
31+
import "../../raga-web-app/src/index.scss";
3232

3333
import { scan } from "react-scan"; // import this BEFORE react
3434
import "react";
@@ -40,6 +40,6 @@ if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
4040
});
4141
}
4242

43-
import "@adahiya/raga-web-app/src/main";
43+
import "../../raga-web-app/src/main";
4444

4545
/* eslint-enable simple-import-sort/imports */

packages/raga-web-app/src/webApi.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ class WebApi implements WebContextBridgeApi {
6565
export const webApi = new WebApi();
6666

6767
// Install it on the window object for compatibility
68-
if (typeof window !== "undefined") {
68+
if (
69+
typeof window !== "undefined" &&
70+
typeof (window as Window & { api: WebContextBridgeApi }).api === "undefined"
71+
) {
6972
(window as Window & { api: WebContextBridgeApi }).api = webApi;
7073
}

0 commit comments

Comments
 (0)