fix: Passing options object to Svg class

This commit is contained in:
Donald Silveira 2017-09-18 17:38:49 -03:00
parent b8a16b509f
commit 7aaa23f482
1 changed files with 3 additions and 3 deletions

View File

@ -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