This repository has been archived on 2023-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
scripts-old/src/utils/getIDFromURL.js

2 lines
70 B
JavaScript
Raw Normal View History

export default (url) => parseInt(new URLSearchParams(url).get('id'));