Skip to content

Commit

Permalink
Update 不学习何以强国.js
Browse files Browse the repository at this point in the history
  • Loading branch information
techxuexi21 authored Mar 29, 2022
1 parent 999fb60 commit 4315a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 不学习何以强国.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function getVideoTag() {
let pauseButton = null;
var u = navigator.userAgent;
if(u.indexOf('Mac') > -1){//Mac
if (iframe.innerHTML) {
if (iframe != null && iframe.innerHTML) {
//如果有iframe,说明外面的video标签是假的
video = iframe.contentWindow.document.getElementsByTagName("video")[0];
pauseButton = iframe.contentWindow.document.getElementsByClassName("prism-play-btn")[0];
Expand Down

0 comments on commit 4315a79

Please sign in to comment.