kiwix / kiwix-apple

Kiwix for offline access on iOS and macOS
https://apple.kiwix.org
GNU Lesser General Public License v3.0
434 stars 69 forks source link

Fix same link opened alerts #706

Closed BPerlakiH closed 1 month ago

BPerlakiH commented 1 month ago

Fixes #701

The issue is that since we were only listening to externalURL changes, when the same link is clicked again, it did not "changed".

The simplest solution is to nil' out theexternalURL`, once the alert is closed, either by cancel or by accepting to open the URL.