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:
parent
c52f690e6d
commit
596be9aea1
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "interlanguage-checker",
|
"name": "interlanguage-checker",
|
||||||
"version": "1.13.1",
|
"version": "1.13.2",
|
||||||
"description": "Check the consistency of MediaWiki interlanguage links in a simple overview.",
|
"description": "Check the consistency of MediaWiki interlanguage links in a simple overview.",
|
||||||
"author": "Felix W. Dekker",
|
"author": "Felix W. Dekker",
|
||||||
"browser": "dist/bundle.js",
|
"browser": "dist/bundle.js",
|
||||||
|
|
|
@ -335,7 +335,7 @@ export class MediaWiki {
|
||||||
* @param apiUrl the url to the `api.php` file
|
* @param apiUrl the url to the `api.php` file
|
||||||
*/
|
*/
|
||||||
constructor(apiUrl: string) {
|
constructor(apiUrl: string) {
|
||||||
const urlObj = new URL(apiUrl);
|
const urlObj = new URL(apiUrl.replace("http://", "https://"));
|
||||||
this.origin = urlObj.origin;
|
this.origin = urlObj.origin;
|
||||||
this.apiPath = urlObj.pathname;
|
this.apiPath = urlObj.pathname;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue