@mideind/netskrafl-react 1.0.0-beta.8 → 1.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +4 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2221,6 +2221,7 @@ const request = (options) => {
|
|
|
2221
2221
|
};
|
|
2222
2222
|
const requestMoves = (options) => {
|
|
2223
2223
|
// Call the moves service on the Google App Engine backend
|
|
2224
|
+
const url = `${MOVES_SERVER_PREFIX}${options.url}`;
|
|
2224
2225
|
const headers = {
|
|
2225
2226
|
"Content-Type": "application/json; charset=UTF-8",
|
|
2226
2227
|
Authorization: `Bearer ${MOVES_ACCESS_KEY}`,
|
|
@@ -2230,7 +2231,7 @@ const requestMoves = (options) => {
|
|
|
2230
2231
|
withCredentials: false,
|
|
2231
2232
|
method: "POST",
|
|
2232
2233
|
...options,
|
|
2233
|
-
url
|
|
2234
|
+
url,
|
|
2234
2235
|
headers,
|
|
2235
2236
|
});
|
|
2236
2237
|
};
|
|
@@ -35926,8 +35927,8 @@ const GataDagsinsBoardAndRack = {
|
|
|
35926
35927
|
// If no riddle is available, return an empty div
|
|
35927
35928
|
return m(".gatadagsins-board-rack-wrapper", "");
|
|
35928
35929
|
}
|
|
35929
|
-
// Is the move currently on the board the best possible move?
|
|
35930
|
-
const celebrate = (riddle.currentScore || 0) >= riddle.bestPossibleScore;
|
|
35930
|
+
// Is the move currently on the board valid, and the best possible move?
|
|
35931
|
+
const celebrate = riddle.wordGood && (riddle.currentScore || 0) >= riddle.bestPossibleScore;
|
|
35931
35932
|
return m(".gatadagsins-board-rack-wrapper", [
|
|
35932
35933
|
// Board area (top)
|
|
35933
35934
|
m(".gatadagsins-board-area" + (celebrate ? ".celebrate" : ""), [
|