Handle different api roots for bookmarklet per environment.