OpenVAA / voting-advice-application

An open-source platform for creating Voting Advice Applications (VAAs)
https://demo.openvaa.org/
GNU General Public License v3.0
8 stars 0 forks source link

refactor: make externalReference sniffer reusable #549

Open kaljarv opened 3 weeks ago

kaljarv commented 3 weeks ago

On <SingleCardPage>s, the close button currently uses this funny sniffer to choose its action. It should be made into a reusable action or component or removed if deprecated by slotless page templates (#375, #376).

  let externalReferrer = true;
  afterNavigate((n) => (externalReferrer = n.from?.route == null));