word-games-theme 1.7.5 → 1.7.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 385fc40b50cbe6b42a1f658d82feee181ec84295e5b66996a3c8a702dbacfab3
4
- data.tar.gz: 07f6e06440b7ad60f8609b1781a5739315d28e46d8680284656fc2215a4f7c8b
3
+ metadata.gz: e66f6967ca9e33e605ea9052f00d0ba82280887b085bf3864d730bb02b1ad73c
4
+ data.tar.gz: e7f0e660e2a3926bdae20613ca8301f1db11af54aa07ae007b7cb160ab8625e9
5
5
  SHA512:
6
- metadata.gz: 73a241a68514054a99ecb265350b55f8718d32eea8e6cf25594ff2069937e5f86c74d50a1d995471d8d6003b38fef3d1da1af9bed9160b1b86325e3b03113f46
7
- data.tar.gz: 4c2487286ae9062d27d5d312474244ed46146c0267ca193b9042e1fc0dc0b3fa6076634e0d970fc8f985310c53a398ca3739a298b6fd61efce113a96d94f979c
6
+ metadata.gz: db9c62b33fc48ebabac566946a3a4060d6bb7830615a68cbacf1d0adba7a588f125f152c6eac384c82a85e3d0adfd8d5a17dc075f908f8fc2e8a4381512e9b31
7
+ data.tar.gz: f859f5dda6fd82708c0f054644bc25b9efd1b3b558cf51dabd1a036ff4d00e760cf836ca52fcbf346ea5740c6f0e019eefad9794bf0b2ec1d39b45cb8f105559
@@ -60,7 +60,7 @@ const getData = async (e) => {
60
60
  <div style="font-weight:900;font-size:14px" >Finding words - Powered by anagramsolvers.org</div>
61
61
  </div>`;
62
62
  const response = await fetch(
63
- `./netlify/functions/getWords?name=${input.value.toLowerCase()}&selecteddictionary=${
63
+ `/.netlify/functions/getWords?name=${input.value.toLowerCase()}&selecteddictionary=${
64
64
  selectedDictionary.value
65
65
  }`
66
66
  );
@@ -247,15 +247,6 @@ const getMatchedChars = (str, userInput) => {
247
247
  async function displayUi(newdata, combinations, userValue, n, wordArr) {
248
248
  // console.log("printed for firsTime");
249
249
 
250
- if (max_word_length != "") {
251
- newdata = newdata.filter((w) => {
252
- var arr1 = w.split(" ");
253
- if (arr1.length == max_word_length) {
254
- return w;
255
- }
256
- });
257
- }
258
-
259
250
  if (newdata.length == []) {
260
251
  if (found.size == 0) {
261
252
  errorMessage.style.display = "block";
@@ -274,6 +265,15 @@ async function displayUi(newdata, combinations, userValue, n, wordArr) {
274
265
  }
275
266
 
276
267
  requestAnimationFrame(() => {
268
+ if (max_word_length != "") {
269
+ newdata = newdata.filter((w) => {
270
+ var arr1 = w.split(" ");
271
+ if (arr1.length == max_word_length) {
272
+ return w;
273
+ }
274
+ });
275
+ }
276
+
277
277
  newdata.map((item, index) => {
278
278
  var i = 0;
279
279
  let nWords = item.split(" ");
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word-games-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms