lundi 25 septembre 2017

How to run javascript for a specific ip address?

I need to change my push notifications supplier, and want to run some basic tests on my main live site, to make sure things fit in with my live code.

Obviously I don't want the site users to see the tests. I was wondering if there is a way that you can have js code running for a specific machine? eg get my machines ip address, and set the js up so that if the ip equals that address, run the test js, otherwise run the normal live js?

Or is there a standard way of running this type of testing on a live site?

Thanks for your time and help.

Aucun commentaire:

Enregistrer un commentaire