Embed style by script
This commit is contained in:
parent
9efd8f8abf
commit
8f2b786177
6 changed files with 31 additions and 26 deletions
|
@ -1,9 +1,9 @@
|
|||
import './console-frame.scss';
|
||||
import { createStore, applyMiddleware } from 'redux';
|
||||
import promise from 'redux-promise';
|
||||
import reducers from 'content/reducers';
|
||||
import TopContentComponent from './components/top-content';
|
||||
import FrameContentComponent from './components/frame-content';
|
||||
import consoleFrameStyle from './site-style';
|
||||
|
||||
const store = createStore(
|
||||
reducers,
|
||||
|
@ -15,3 +15,7 @@ if (window.self === window.top) {
|
|||
} else {
|
||||
new FrameContentComponent(window, store); // eslint-disable-line no-new
|
||||
}
|
||||
|
||||
let style = window.document.createElement('style');
|
||||
style.textContent = consoleFrameStyle.default;
|
||||
window.document.head.appendChild(style);
|
||||
|
|
Reference in a new issue