wangweianger/web-report-sdk

iOS 报错:window.performance.getEntriesByType is not a function

liucong1 opened this issue · 1 comments

if (!window.performance && !window.performance.getEntries) return false;

这儿写错了吧,需要将 && 换成 ||
将 window.performance 和 window.performance.getEntries 打出来看了下,window.performance是个对象,但是 window.performance.getEntries 是undefined
用的是 UIWebView

已在 #9 中解决