@volr/react-ui 0.1.41 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2767,7 +2767,11 @@ function ensureVolrStylesInjected() {
|
|
|
2767
2767
|
const style = document.createElement("style");
|
|
2768
2768
|
style.id = id;
|
|
2769
2769
|
style.textContent = VOLR_SDK_CSS;
|
|
2770
|
-
document.
|
|
2770
|
+
if (document.body) {
|
|
2771
|
+
document.body.appendChild(style);
|
|
2772
|
+
} else {
|
|
2773
|
+
document.head.appendChild(style);
|
|
2774
|
+
}
|
|
2771
2775
|
injected = true;
|
|
2772
2776
|
}
|
|
2773
2777
|
var VolrUIContext = React3.createContext(null);
|