From 7aaa23f482deb64613083d4c2880bc30107b2369 Mon Sep 17 00:00:00 2001 From: Donald Silveira Date: Mon, 18 Sep 2017 17:38:49 -0300 Subject: [PATCH] fix: Passing options object to Svg class --- src/DPlayer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DPlayer.js b/src/DPlayer.js index 3a54a7c..41063bc 100644 --- a/src/DPlayer.js +++ b/src/DPlayer.js @@ -1,6 +1,6 @@ import './DPlayer.scss'; -import utils, {isMobile} from './utils'; +import utils, { isMobile } from './utils'; import handleOption from './options'; import i18n from './i18n'; import html from './html'; @@ -33,7 +33,7 @@ class DPlayer { this.tran = new i18n(this.options.lang).tran; - this.icons = new Svg(this.options.icons); + this.icons = new Svg(this.options); this.events = new Events(); @@ -928,7 +928,7 @@ class DPlayer { } // Support FLV - if (this.type === 'flv' && flvjs.isSupported()) { + if (this.type === 'flv' && flvjs.isSupported()) { const flvPlayer = flvjs.createPlayer({ type: 'flv', url: video.src