Fix window.location related code

See README for setting up dev and building release apps. Token switching relies on [this change](https://github.com/hivewallet/hive-js/commit/6156c57684608b83a0b65eb107f91a9b3956582d) getting merged into hive-ios.