Commit 7aa6c8ae authored by Booteille's avatar Booteille

Fix issue where instances subdomains where redirected to the main domain

parent afb42591
......@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.7.1] - 2019-04-06
### Fixed
- No longer redirect instance subdomains to the main domain
## [0.7.0] - 2019-04-06
### Added
- Add "Force Proxy" option
......@@ -17,14 +21,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Rework with Typescript and use Webpack
## [0.6.0] - 2019-04-05
<<<<<<< HEAD
### Added
- Add 64x64 logos
- Add support for youtu.be
## [0.5.0] - 2019-04-01
=======
>>>>>>> rework
### Added
- Add 64x64 logos
- Add support for youtu.be
......
......@@ -25,7 +25,7 @@ const invidition = async (r) => {
let queryChanged = false;
let instance = new URL(<string> options.instance);
if (url.hostname !== instance.hostname) {
if (url.hostname.indexOf(instance.hostname) === -1) {
queryChanged = true;
url.hostname = instance.hostname;
url.protocol = 'https'; // Force HTTPS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment