get-location-origin
Get the window.location.origin string - even if not supported by the browser
- This is not a polyfill
- Does not modify the
window.location
object
Install
npm install --save get-location-origin
Usage
var origin = ; console;// => "http://localhost:3000"