unfortunately I can test this in dev...
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 48s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 48s
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
(function waitForCMSAndReact() {
|
||||||
|
if (!(window.CMS && window.React)) {
|
||||||
|
setTimeout(waitForCMSAndReact, 50);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const React = window.React;
|
||||||
|
|
||||||
class PrefixedImageControl extends React.Component {
|
class PrefixedImageControl extends React.Component {
|
||||||
openMediaLibrary = () => {
|
openMediaLibrary = () => {
|
||||||
this.props.mediaLibrary.open({
|
this.props.mediaLibrary.open({
|
||||||
@@ -45,3 +52,4 @@ window.CMS.registerWidget(
|
|||||||
PrefixedImageWidget.controlComponent,
|
PrefixedImageWidget.controlComponent,
|
||||||
PrefixedImageWidget.previewComponent
|
PrefixedImageWidget.previewComponent
|
||||||
);
|
);
|
||||||
|
})();
|
||||||
Reference in New Issue
Block a user