Skip to content

Commit

Permalink
Replace with URLSearchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Oct 18, 2022
1 parent 67f15c2 commit 3dd27a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bemuse/src/utils/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
// import query from 'bemuse/utils/query'
// alert(query.mode)

import querystring from 'querystring'
export default querystring.parse(location.search.replace(/^\?/, ''))
export default Object.fromEntries(
new URLSearchParams(location.search).entries()
)

0 comments on commit 3dd27a0

Please sign in to comment.