Explorar o código

docs: player load

DIYgod %!s(int64=6) %!d(string=hai) anos
pai
achega
3e73d71266
Modificáronse 1 ficheiros con 1 adicións e 7 borrados
  1. 1 7
      docs/.vuepress/components/DPlayer.vue

+ 1 - 7
docs/.vuepress/components/DPlayer.vue

@@ -79,13 +79,7 @@ export default {
     },
     mounted: function () {
         if (this.immediate) {
-            if (!window) {
-                this.dplayer = new DPlayer(this.options);
-            } else {
-                window.onload = () => {
-                    this.dplayer = new DPlayer(this.options);
-                }
-            }
+            this.dplayer = new DPlayer(this.options);
         }
     },
     beforeDestroy: function () {