[知乎助手] 修复少数情况下可能报错的问题

This commit is contained in:
blackmatrix7 2022-10-12 09:41:45 +08:00
parent 5b98470686
commit 79862c473d
1 changed files with 2 additions and 1 deletions

View File

@ -837,7 +837,8 @@ function removeRecommendAds() {
element["card_type"] === "slot_event_card" ||
element["card_type"] === "slot_video_event_card" ||
element.hasOwnProperty("ad") ||
element["extra"]["type"] === "Training";
// 知乎训练营
(element["extra"] && element["extra"]["type"] === "Training");
// 是否为流媒体
let isStream =
isAd != true &&