adding error log if name of square in Tile not matching with the param targetObject of OpenPopup in script.js

This commit is contained in:
DESKTOP-FMM8UI0\CLV 2021-03-10 17:22:39 +01:00
parent 8d0411e8a3
commit f9f618094d
3 changed files with 51 additions and 25 deletions

View file

@ -81,10 +81,9 @@ window.WA = {
popupId++;
const popup = new Popup(popupId);
const btnMap = new Map<number, () => void>();
popupCallbacks.set(popupId, btnMap);
targetObject = "tutoBobble";
let id = 0;
for (const button of buttons) {
const callback = button.callback;