@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 CHANGED
@@ -2772,7 +2772,11 @@ function ensureVolrStylesInjected() {
2772
2772
  const style = document.createElement("style");
2773
2773
  style.id = id;
2774
2774
  style.textContent = VOLR_SDK_CSS;
2775
- document.head.appendChild(style);
2775
+ if (document.body) {
2776
+ document.body.appendChild(style);
2777
+ } else {
2778
+ document.head.appendChild(style);
2779
+ }
2776
2780
  injected = true;
2777
2781
  }
2778
2782
  var VolrUIContext = React3__default.default.createContext(null);