Resolve regression of #43.

By turning the InterlanguageMap into a normal Map, I also removed its enforcing of https:// everywhere.
This commit is contained in:
Florine W. Dekker 2021-05-14 19:30:59 +02:00
parent c52f690e6d
commit 596be9aea1
Signed by: FWDekker
GPG Key ID: 78B3EAF58145AF25
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "interlanguage-checker",
"version": "1.13.1",
"version": "1.13.2",
"description": "Check the consistency of MediaWiki interlanguage links in a simple overview.",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",

View File

@ -335,7 +335,7 @@ export class MediaWiki {
* @param apiUrl the url to the `api.php` file
*/
constructor(apiUrl: string) {
const urlObj = new URL(apiUrl);
const urlObj = new URL(apiUrl.replace("http://", "https://"));
this.origin = urlObj.origin;
this.apiPath = urlObj.pathname;
}