Function autofill

  • Autofills a referral code into an element when someone has been referred. Uses squatchReferralCookie behind the scenes.

    Parameters

    • selector: string

      Element class/id

    Returns void

    Example

    squatch.autofill("input.referral-code")
    squatch.autofill("input#referral-code")

Generated using TypeDoc