Skip to content

Commit

Permalink
branding remove function should work now properly..
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Zimmermann committed Oct 31, 2019
1 parent 778c692 commit bf6cf45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Hypnonema.DUI/src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ class App extends Component {

const iframeRef = document.getElementsByTagName('iframe')[0];
if (typeof(iframeRef) !== 'undefined' && iframeRef !== null) {
const head = iframeRef.getElementsByTagName('head')[0];
const style = iframeRef.createElement('style');
const head = iframeRef.contentDocument.getElementsByTagName('head')[0];
const style = iframeRef.contentDocument.createElement('style');
head.appendChild(style);

style.setAttribute('type', 'text/css');
style.appendChild(iframeRef.createTextNode(css));
style.appendChild(iframeRef.contentDocument.createTextNode(css));
}
};

Expand Down

0 comments on commit bf6cf45

Please sign in to comment.