From 49e37c3c52f3172d052884656ea9ca2271fac000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E7=93=9C=E4=BA=91?= Date: Mon, 31 Jul 2023 14:36:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Diframe=E6=9C=AA=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=89=8D=E5=AF=BC=E8=87=B4=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- post_example.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/post_example.html b/post_example.html index 0020351..708bfbc 100644 --- a/post_example.html +++ b/post_example.html @@ -149,7 +149,14 @@ function openComments(){ while(utterancesLoad==0){ utterancesFrame=document.getElementsByClassName("utterances-frame")[0]; - utterancesFrame.onload = function(){utterancesLoad=1;}; + if(utterancesFrame!=null){ + if (utterancesFrame.attachEvent){ + utterancesFrame.attachEvent("onload", function(){utterancesLoad=1;}); + } + else { + utterancesFrame.onload = function(){utterancesLoad=1;}; + } + } } cmButton.style.display="none"; cm.style.display="block";