Support for YAML content
This commit is contained in:
11
src/index.js
11
src/index.js
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import { Provider } from 'react-redux';
|
||||
import { Router } from 'react-router';
|
||||
import { registerPreviewStyle,registerPreviewTemplate } from './lib/registry';
|
||||
import registry from './lib/registry';
|
||||
import configureStore from './store/configureStore';
|
||||
import routes from './routing/routes';
|
||||
import history, { syncHistory } from './routing/history';
|
||||
@ -31,7 +31,8 @@ render((
|
||||
</Provider>
|
||||
), el);
|
||||
|
||||
window.CMS = {
|
||||
registerPreviewStyle: registerPreviewStyle,
|
||||
registerPreviewTemplate: registerPreviewTemplate
|
||||
};
|
||||
window.CMS = {};
|
||||
console.log('reg: ', registry);
|
||||
for (const method in registry) {
|
||||
window.CMS[method] = registry[method];
|
||||
}
|
||||
|
Reference in New Issue
Block a user