2015-07-20 40 views
0

我已經加入Yammer的飼料到我的網站捕獲哭訴嵌入錯誤

try{  
yam.connect.embedFeed(
      { container: '#embedded-feed', 
      network: 'fourleaf.com', 
      feedType: 'group',    // can be 'group', 'topic', or 'user'   
      feedId: '123'      // feed ID from the instructions above 
      ,config: { 
       defaultGroupId: 3257958  // specify default group id to post to 
      } 
     }); 
} 
catch(exception ex){ 
//error handling code here 
} 

如果用戶不接受使用策略,哭訴被投擲的是X-框架選項未啓用的錯誤。

我想在catch塊中捕獲這個錯誤,但它並沒有被捕獲到它! 我可以看到錯誤控制檯,但catch塊中的代碼是沒有得到所謂的

還是有成功的功能是在Yammer的飼料嵌入選項

回答

1

哭訴現在嵌入活動handelers。嘗試在您的抓塊或任何你想要的地方,

yam.on('error', function(){ 
     console.error('an error occured'); 
});