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:
parent
4f6cb03add
commit
052c2ce1a9
@ -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))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -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);
|
Loading…
Reference in New Issue
Block a user