diff options
Diffstat (limited to 'web-ui/src/util.js')
-rw-r--r-- | web-ui/src/util.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web-ui/src/util.js b/web-ui/src/util.js new file mode 100644 index 00000000..1b244458 --- /dev/null +++ b/web-ui/src/util.js @@ -0,0 +1,7 @@ +export const hasQueryParameter = param => ( + decodeURIComponent(window.location.search.substring(1)).includes(param) +); + +export default { + hasQueryParameter +}; |