Hotfix: Missing game urlparam in front-end

- added default return value if the game param is not set to getGameParam on bingo
pull/3/head
Trivernis 6 years ago
parent 51a22eca86
commit 68faea7d86

@ -3,7 +3,11 @@
* @returns {string} * @returns {string}
*/ */
function getGameParam() { function getGameParam() {
return window.location.href.match(/\?game=(\w+)/)[1]; let matches = window.location.href.match(/\?game=(\w+)/);
if (matches)
return matches[1];
else
return '';
} }
/** /**

Loading…
Cancel
Save