function sendDataToIframe() { // Build the query string const url = new URL(window.location.href); // Get the URLSearchParams object const params = url.searchParams; // Update the iframe source with the query string const iframe = document.getElementById(‘claw-game-iframe’); iframe.src = iframe.src + “?ref=” + params.get(‘ref’) + “&ref2=” + params.get(‘ref2’); } sendDataToIframe()