Skip to content

Commit

Permalink
refactor(core): rename reset style
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonatangcavalcanti committed Nov 25, 2020
1 parent 2a6b9b7 commit 3f0b86c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import ErrorMixin from '@/base/error_mixin'
import $ from 'clappr-zepto'

import CoreStyle from './public/style.scss'
import OptionalStyle from './public/optional.scss'
import ResetStyle from './public/optional_reset.scss'

/**
* The Core is responsible to manage Containers and the player state.
Expand Down Expand Up @@ -361,9 +361,9 @@ export default class Core extends UIObject {

appendToParent() {
const style = Styler.getStyleFor(CoreStyle.toString(), { baseUrl: this.options.baseUrl })
const optional = Styler.getStyleFor(OptionalStyle.toString(), { baseUrl: this.options.baseUrl })
const resetStyle = Styler.getStyleFor(ResetStyle.toString(), { baseUrl: this.options.baseUrl })
this.$el.append(style[0])
this.options.includeResetStyle && this.$el.append(optional[0])
this.options.includeResetStyle && this.$el.append(resetStyle[0])

const hasCoreParent = this.$el.parent() && this.$el.parent().length
!hasCoreParent && this.$el.appendTo(this.options.parentElement)
Expand Down
File renamed without changes.

0 comments on commit 3f0b86c

Please sign in to comment.