File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
3333import { scan } from "react-scan" ; // import this BEFORE react
3434import "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 */
Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ class WebApi implements WebContextBridgeApi {
6565export 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}
You can’t perform that action at this time.
0 commit comments