1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-28 08:58:46 +02:00

@BrandonOCasey removed unused base-styles.js file. closes #3486

This commit is contained in:
brandonocasey 2016-08-02 12:31:34 -04:00 committed by Gary Katsevman
parent 4f6cb03add
commit 052c2ce1a9
2 changed files with 1 additions and 22 deletions

View File

@ -4,6 +4,7 @@ CHANGELOG
## HEAD (Unreleased)
* @misteroneill, @BrandonOCasey, and @pagarwal123 updates all the code to pass the linter ([view](https://github.com/videojs/video.js/pull/3459))
* @misteroneill added ghooks to run linter on git push ([view](https://github.com/videojs/video.js/pull/3459))
* @BrandonOCasey removed unused base-styles.js file ([view](https://github.com/videojs/video.js/pull/3486))
--------------------

View File

@ -1,22 +0,0 @@
/**
* @file base-styles.js
*
* This code injects the required base styles in the head of the document.
*/
import window from 'global/window';
import document from 'global/document';
if (window.VIDEOJS_NO_BASE_THEME) {
return;
}
const styles = '{{GENERATED_STYLES}}';
// Don't think we need this as it's a noop?
// if (styles === '{{GENERATED'+'_STYLES}}');
const styleNode = document.createElement('style');
styleNode.innerHTML = styles;
document.head.insertBefore(styleNode, document.head.firstChild);