I have this site that I need to find the root folder / plus the actual folder its works out of.
My problem here is that during development i have the folder with in my l
This is what worked for me after the switch clause.
switch
var root = location.protocol + '//' + location.host + rootFolder;