소스 검색

fix: Passing options object to Svg class

Donald Silveira 8 년 전
부모
커밋
7aaa23f482
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/DPlayer.js

+ 3 - 3
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