mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-08 23:25:02 +00:00
8 lines
309 B
JavaScript
8 lines
309 B
JavaScript
export let capitalise0 = name => name[0].toUpperCase() + name.slice(1)
|
|
|
|
export let getUrl = () => window.location.href.toString()
|
|
export let getIframeOption = optionName => {
|
|
let url = getUrl(),
|
|
hasOption = url.includes(optionName + '=')
|
|
return hasOption && url.split(optionName + '=')[1].split('&')[0]
|
|
}
|