crnormand / gurps

Implementing a GURPS 4e game aid for Foundry VTT
MIT License
105 stars 49 forks source link

Bug: Chat PDF-Link leads to Warehouse23 #1014

Closed LordOHelmet closed 3 years ago

LordOHelmet commented 3 years ago

When a chat output with a PDF-Link is created from the ADD, clicking the link in chat will not only open the PDF but also the Warehouse23 page.

ADD Chat Warhouse

crnormand commented 3 years ago

The user click was generating 2 events. One with "B420" and one with "(B420)". The second one could not be parsed correctly, so it opens a W23 link. I updated the code to kill the event propagation after the first event is received.

https://github.com/crnormand/gurps/pull/1032