Created
July 6, 2023 12:01
-
-
Save bjoerntx/e9b2fe42351530295681843f1ab49498 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replaceWord(word) { | |
return new Promise(resolve => { | |
$.get("home/replaceWord", { word: word }) | |
.done(data => resolve(data)) | |
.fail(() => resolve(null)); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment