assets/js/xletter-home.js in word-games-theme-2.5.7 vs assets/js/xletter-home.js in word-games-theme-2.5.8
- old
+ new
@@ -170,17 +170,15 @@
});
}
const paramName = 'search';
if (new URLSearchParams(window.location.search).has(paramName)) {
- loadResource("/assets/css/wordfinder-result.css", true, "text/css")
- .then((data) => {
+
+ loadResource("/assets/css/wordfinder-result.css", true, "text/css").then((data) => {
console.log("CSS loaded:", data);
- })
- .then(() => {
+ }).then(() => {
// Load the JavaScript file after the CSS file has loaded
- loadResource("/assets/js/xletter-result.js", true, "text/javascript")
- .then((data) => {
+ loadResource("/assets/js/xletter-result.js", true, "text/javascript").then((data) => {
console.log("JavaScript loaded:", data);
getData(txtBox.value.toLowerCase());
})
.catch((error) => {
console.error("Error loading JavaScript:", error);