瀏覽代碼

style: format

DIYgod 5 年之前
父節點
當前提交
284c30c1f8
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/js/player.js

+ 2 - 3
src/js/player.js

@@ -49,9 +49,8 @@ class DPlayer {
         }
         if (this.options.live) {
             this.container.classList.add('dplayer-live');
-        }
-        else {
-            this.container.classList.remove("dplayer-live");
+        } else {
+            this.container.classList.remove('dplayer-live');
         }
         if (utils.isMobile) {
             this.container.classList.add('dplayer-mobile');