assets/js/X-letter.js in word-games-theme-1.1.1 vs assets/js/X-letter.js in word-games-theme-1.1.2

- old
+ new

@@ -108,15 +108,16 @@ } return diffRange } const getData = async (serachValue) => { try { + let selectedDictionary = document.querySelector('.select_dropDown2').value main.innerHTML = `<div class="loader"> <img src='/assets/images/loading.gif'> <div style="font-weight:900;font-size:14px" >Finding words - Powered by ${siteUrl.replace(/^https?:\/\//, '')}</div> </div>` const response = await fetch( - `/.netlify/functions/getWords?name=${serachValue}` + `/.netlify/functions/getWords?name=${serachValue}&selecteddictionary=${selectedDictionary}` ) const data = await response.json() main.innerHTML = '' x_with_letters(data) } catch (error) {