@markind-gg/tanks 1.0.25 → 1.0.26
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/main.js +9 -2
- package/dist/manifest.json +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -21731,11 +21731,18 @@ function dC() {
|
|
|
21731
21731
|
return e.id = Zm, e.textContent = fC, document.head.appendChild(e), e;
|
|
21732
21732
|
}
|
|
21733
21733
|
const hC = (t, e) => {
|
|
21734
|
+
var l, r;
|
|
21734
21735
|
const n = document.getElementById(t);
|
|
21735
21736
|
if (!n) throw new Error(`tanks mount: container #${t} not found`);
|
|
21736
|
-
const a = dC()
|
|
21737
|
+
const a = dC();
|
|
21738
|
+
e.log.log("mount", {
|
|
21739
|
+
mode: (l = e.gameState) == null ? void 0 : l.selectedModeId,
|
|
21740
|
+
map: (r = e.gameState) == null ? void 0 : r.selectedMapId,
|
|
21741
|
+
players: e.players.length
|
|
21742
|
+
});
|
|
21743
|
+
const o = iS.createRoot(n, dS("tanks"));
|
|
21737
21744
|
return o.render(wv.createElement(cC, { sdk: e })), () => {
|
|
21738
|
-
o.unmount(), n.innerHTML = "", a.remove();
|
|
21745
|
+
e.log.log("unmount"), o.unmount(), n.innerHTML = "", a.remove();
|
|
21739
21746
|
};
|
|
21740
21747
|
};
|
|
21741
21748
|
export {
|
package/dist/manifest.json
CHANGED