Merge pull request #1009 from argonui/seal-verification

Added token verification to cards that seal
This commit is contained in:
dscarpac 2024-11-19 20:39:13 -06:00 committed by GitHub
commit 7c929c2db9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,14 @@ function updateSave()
end
function onLoad(savedData)
sealedTokens = JSON.decode(savedData) or {}
-- verify sealed tokens
for _, guid in ipairs(JSON.decode(savedData) or {}) do
local token = getObjectFromGUID(guid)
if token ~= nil then
table.insert(sealedTokens, guid)
end
end
ID_URL_MAP = chaosBagApi.getIdUrlMap()
generateContextMenu()
updateStackSize()