Merge pull request #6 from sorat0mo/main

fix imgur reidrect
This commit is contained in:
Ahmet Arda Kavakcı 2022-06-08 13:50:26 +00:00 committed by GitHub
commit 027cd84542
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,8 @@ function redirectImgur() {
let farsideRimgo = farsideInstance + "/rimgo";
window.stop();
location.hostname = farsideRimgo;
let newURL = window.location.protocol + "//" + farsideRimgo + window.location.pathname + window.location.search + window.location.hash;
window.location.replace(newURL);
}
function redirectMedium() {