Skip to content

javascript api code sample fails in firefox #78

@youstupidgithub

Description

@youstupidgithub

re: the javascript code sample on the ipify home page:

<script` type="application/javascript">
  function getIP(json) {
    document.write("My public IP address is: ", json.ip);
  }
</script>

<script type="application/javascript" `src="https://api.ipify.org?format=jsonp&callback=getIP"></script>

that exact code works in edge, chrome, brave, and safari. but i can't get it to generate anything in firefox. (i tested it in firefox on various PCs and i verified that javascript is enabled in the test firefox browsers.) it doesn't even output the "My public IP address is:" string; let alone the ip address.

any thoughts? fixes? thank you very much!!!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions