refactor: use location.origin instead of window.location.origin
refactor: use location.origin instead of window.location.origin

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:

http://go.hood.ie/thehoodiefirm

hoodiehq/hoodie-client