vlaminck / AboveVTT

GNU Affero General Public License v3.0
0 stars 1 forks source link

Clear tokens_needing_updates, make sure token is updated, and prevent attempts to set window.pc on tabs/iframes #56

Closed Azmoria closed 1 year ago

Azmoria commented 1 year ago

Couple fixes I mentioned in discord.

This clears pc's that need updating so we don't end up compounding out messages.

Makes sure the token is updated by getting the id from the pc data - since the playerId is not the full id needed for window.token_objects.

Stop trying to set window.pcs data in iframes or tabs as they don't/shouldn't have that data.