Skip to content

Commit

Permalink
feat(devtools): use api.now()
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 10, 2022
1 parent db92787 commit 06ac7bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function addDevtools(app: App, router: Router, matcher: RouterMatcher) {
title: 'Error during Navigation',
subtitle: to.fullPath,
logType: 'error',
time: Date.now(),
time: api.now(),
data: { error },
groupId: (to.meta as any).__navigationId,
},
Expand Down Expand Up @@ -185,7 +185,7 @@ export function addDevtools(app: App, router: Router, matcher: RouterMatcher) {
api.addTimelineEvent({
layerId: navigationsLayerId,
event: {
time: Date.now(),
time: api.now(),
title: 'Start of navigation',
subtitle: to.fullPath,
data,
Expand Down Expand Up @@ -226,7 +226,7 @@ export function addDevtools(app: App, router: Router, matcher: RouterMatcher) {
event: {
title: 'End of navigation',
subtitle: to.fullPath,
time: Date.now(),
time: api.now(),
data,
logType: failure ? 'warning' : 'default',
groupId: (to.meta as any).__navigationId,
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1220,9 +1220,9 @@
"@vue/shared" "3.2.31"

"@vue/devtools-api@^6.0.0":
version "6.0.12"
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.12.tgz#7b57cce215ae9f37a86984633b3aa3d595aa5b46"
integrity sha512-iO/4FIezHKXhiDBdKySCvJVh8/mZPxHpiQrTy+PXVqJZgpTPTdHy4q8GXulaY+UKEagdkBb0onxNQZ0LNiqVhw==
version "6.0.13"
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.13.tgz#33f8debe2d0239903b6fc8af10ace45ed3a4fab1"
integrity sha512-T34EjcArVqzANedEZe2kXQ+AZsld2z1ptJlkOGm87+blk+s6udnP4ze/NYqV8lz1o9AIivimN0xxteLlWiWQdg==

"@vue/[email protected]":
version "3.2.29"
Expand Down

0 comments on commit 06ac7bb

Please sign in to comment.