diff --git a/src/page.html b/src/page.html
index bc592e5..db20964 100644
--- a/src/page.html
+++ b/src/page.html
@@ -227,7 +227,7 @@
}
function send_msg() {
if (document.getElementById("input-card").value.length < 10) {
- window.parent.alert("评论内容不能少于10个字")
+ alert("评论内容不能少于10个字")
return
}
if (logined == 0) {
@@ -243,7 +243,7 @@
if (xhr.readyState == 4 && xhr.status == 200) {
var obj = JSON.parse(xhr.responseText);
if (obj.code == 1) {
- window.parent.alert(obj.msg)
+ alert(obj.msg)
document.getElementsByClassName("send-btn")[0].removeAttribute("loading")
return
}