Silverfeelin / SkyGame-Planner

Sky:CotL unlock planner/tracker
Other
17 stars 3 forks source link

[Field Guilde] Return when not viewing image source #122

Closed nirewen closed 1 week ago

nirewen commented 1 week ago

Bug description

When clicking on an item in the field guide, the wiki page opens up every time.

Root cause

The bug is caused because it's not checked on the click handler of the anchor element, whether the option to View Source is enabled.

Solution

Check if the viewingSource boolean has been toggled (from the button on the top) when running the checkViewSource function of the component.

Silverfeelin commented 1 week ago

I must've been pretty sleepy while writing this code to have forgotten that. Thank you very much for the fix!