This commit is contained in:
danielyxie 2019-02-22 13:35:07 -08:00
commit d9466d8c82

@ -748,7 +748,8 @@ const Engine = {
item.appendChild(createElement("a", { item.appendChild(createElement("a", {
innerText:"Accept Faction Invitation", innerText:"Accept Faction Invitation",
class:"a-link-button", display:"inline", margin:"4px", padding:"4px", class:"a-link-button", display:"inline", margin:"4px", padding:"4px",
clickListener:()=>{ clickListener: (e) => {
if (!e.isTrusted) { return false; }
joinFaction(Factions[factionName]); joinFaction(Factions[factionName]);
for (var i = 0; i < Player.factionInvitations.length; ++i) { for (var i = 0; i < Player.factionInvitations.length; ++i) {
if (Player.factionInvitations[i] == factionName || Factions[Player.factionInvitations[i]].isBanned) { if (Player.factionInvitations[i] == factionName || Factions[Player.factionInvitations[i]].isBanned) {