Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.performance.timing.navigationStart有bug #678

Open
303182519 opened this issue Feb 18, 2020 · 1 comment
Open

window.performance.timing.navigationStart有bug #678

303182519 opened this issue Feb 18, 2020 · 1 comment

Comments

@303182519
Copy link

Version

1.12.36

Reproduction link

https://aq.huya.com/m/third_bind/third_bind.html

Steps to reproduce

发现你们的库里面用到window.performance.timing.navigationStart这个方法,在sentry的监控下,发现在IOS报null is not an object (evaluating 'window.performance.timing.navigationStart')

What is expected?

未知

What is actually happening?

未知

Dependencies Version

vue: 2.6.11
better-scroll: 1.15.0

@dolymood
Copy link
Contributor

dolymood commented Feb 18, 2020

这个貌似是 bs 的bug 目前来看的话 只能先 hack 处理掉
As
ustbhuangyi/better-scroll#841

if (!performance.timing) {
  performance.timing = {}
  Object.defineProperty(performance.timing, 'navigationStart', {
    get: function () {
      return Date.now() - performance.now()
    }
  })
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants