Skip to content

Commit

Permalink
chore: avoid deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Oct 16, 2024
1 parent bbf59a5 commit bc1ccfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/logic/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import MdiViewDashboard from '~icons/mdi/view-dashboard'
import MdiWeb from '~icons/mdi/web'
import MdiWorld from '~icons/mdi/world'
import { startCase } from 'lodash-es'
import { $URL } from 'ufo'
import { parseURL } from 'ufo'
import CellColorContrast from '../components/Cell/CellColorContrast.vue'
import CellImage from '../components/Cell/CellImage.vue'
import CellImageIssues from '../components/Cell/CellImageIssues.vue'
Expand Down Expand Up @@ -43,7 +43,7 @@ export const isStatic = window.__unlighthouse_static

export { apiUrl, basePath, device, dynamicSampling, groupRoutesKey, lighthouseOptions, throttle, wsUrl }

export const website = new $URL(site).origin
export const website = parseURL(site).origin

export const categories = (lighthouseOptions?.onlyCategories || ['performance', 'accessibility', 'best-practices', 'seo'])
export const tabs = [
Expand Down

0 comments on commit bc1ccfa

Please sign in to comment.