Websites/Snippets/Geolocated-Snippets: Difference between revisions

Jump to navigation Jump to search
Line 33: Line 33:
# Navigate to about:home.
# Navigate to about:home.
# Open the Web Developer > Web Console (ctrl+shift+k).
# Open the Web Developer > Web Console (ctrl+shift+k).
# At the prompt (">") enter localStorage['snippets-last-update'] = 0
# At the prompt (">") type the following and hit return: localStorage['snippets-last-update'] = 0
# At the prompt (">") enter localStorage.geoLastUpdated = 0
# At the prompt (">") type the following and hit return: localStorage.geoLastUpdated = 0
# Refresh about:home. You should see a request to snippets.stage.mozilla.com and another request to geo.mozilla.com.  
# Refresh about:home. You should see a request to snippets.stage.mozilla.com and another request to geo.mozilla.com.  
# At the prompt (">") enter localStorage.geoCountry. You should see a country code derived from your IP address ("US" for United States).
# At the prompt (">") type the following and hit return: localStorage.geoCountry  
# You should see a country code derived from your IP address ("US" for United States).


You have now requested the new snippets code from the staging snippets server; and the new snippets code has made a request to the new geo server and stored the result in your browser. If you were in a country that had country specific snippets, you would see them. (There are none yet.)
You have now requested the new snippets code from the staging snippets server; and the new snippets code has made a request to the new geo server and stored the result in your browser. If you were in a country that had country specific snippets, you would see them. (There are none yet.)
Confirmed users
950

edits

Navigation menu