kodadot/nft-gallery

View on GitHub
composables/useExperiments.ts

Summary

Maintainability
A
0 mins
Test Coverage
export default function () {
  const searchParams = new URLSearchParams(window.location.search)

  const has = (key: string) =>
    searchParams.get(key) === 'true' || localStorage.getItem(key) === 'true'

  return {
    redesign: computed(() => has('redesign')),
  }
}