Dynamic app buttons

0123456789
0123456789

Show iOS and Android buttons.

Dynamic app buttons

Show iOS and Android buttons.

Head to the desktop site to copy.

Updated:

Nov 8, 2023

Type:

Override

Notes

  • There will be a slight delay as the override determines which platform/variant to show, to combat this I've added a slight appear animation:

if (
        userAgent.includes("iphone") ||
        userAgent.includes("ipad")

  • Ensure your variant names match the names in the code override:

if (
        userAgent.includes("iphone") ||
        userAgent.includes("ipad")

  • Will render the default variant in Preview.

Help

How do I add code overrides?

Found a bug? Have an idea?