mercredi 26 avril 2017

How to access window.location in environment.js

In my development setup i use local network resources. So i have to adapt some environment urls depending on my network (home / work) like this:

ENV.APP.image_path = home ? 'http://home.server' : "http://work.server"; 

Is it possible to use window.location in config/environment.js to change this urls automatically?




Aucun commentaire:

Enregistrer un commentaire