Explorar o código

fix: Passing options object to Svg class

Donald Silveira %!s(int64=8) %!d(string=hai) anos
pai
achega
7aaa23f482
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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