浏览代码

[demo] - 删除无用代码

kevin.song 5 年之前
父节点
当前提交
f5777b208f
共有 1 个文件被更改,包括 0 次插入11 次删除
  1. 0 11
      examples/react/src/pages/room/index.jsx

+ 0 - 11
examples/react/src/pages/room/index.jsx

@@ -116,17 +116,6 @@ export default class Room extends Component {
       }
     });
 
-    this.client.on("record-notify", (Error, RecordResult) => {
-      if (Error !== undefined) {
-        alert(`录制失败: ${Error}`);
-      }
-    });
-
-    this.client.on("relay-notify", (Error, RecordResult) => {
-      if (Error !== undefined) {
-        alert(`转推失败: ${Error}`);
-      }
-    });
     window.addEventListener("beforeunload", this.handleLeaveRoom);
   }