react-admin-base-bootstrap 0.9.2 → 0.9.3
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.
|
@@ -45,7 +45,8 @@ export function rawCssLoader(cb) {
|
|
|
45
45
|
document.head.appendChild(styleTag);
|
|
46
46
|
if (!loaded) {
|
|
47
47
|
loaded = true;
|
|
48
|
-
|
|
48
|
+
const res = yield cb();
|
|
49
|
+
styleTag.innerHTML = (res === null || res === void 0 ? void 0 : res.default) || res;
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
},
|
package/package.json
CHANGED
|
@@ -51,7 +51,9 @@ export function rawCssLoader(cb) {
|
|
|
51
51
|
|
|
52
52
|
if (!loaded) {
|
|
53
53
|
loaded = true;
|
|
54
|
-
|
|
54
|
+
|
|
55
|
+
const res = await cb();
|
|
56
|
+
styleTag.innerHTML = res?.default || res;
|
|
55
57
|
}
|
|
56
58
|
},
|
|
57
59
|
unuse: function() {
|
|
@@ -71,7 +73,7 @@ export function urlCssLoader(link) {
|
|
|
71
73
|
default: {
|
|
72
74
|
use: function() {
|
|
73
75
|
document.head.appendChild(linkTag);
|
|
74
|
-
|
|
76
|
+
},
|
|
75
77
|
unuse: function() {
|
|
76
78
|
document.head.removeChild(linkTag);
|
|
77
79
|
}
|