-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: polyfill
global
to fix Material UI
- Loading branch information
1 parent
e2631dc
commit 52dd073
Showing
3 changed files
with
99 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/node_modules/@dhis2/app-shell/index.html b/node_modules/@dhis2/app-shell/index.html | ||
index dd10d7d..1bdddf1 100644 | ||
--- a/node_modules/@dhis2/app-shell/index.html | ||
+++ b/node_modules/@dhis2/app-shell/index.html | ||
@@ -55,6 +55,11 @@ | ||
<div id="dhis2-app-root"></div> | ||
<div id="dhis2-portal-root"></div> | ||
|
||
+ <!-- Polyfill to add `global` for Material UI --> | ||
+ <script> | ||
+ var global = global || window | ||
+ </script> | ||
+ | ||
<!-- The entrypoint for Vite --> | ||
<script type="module" src="./src/index.jsx"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters