Prevent using null object

Fixes #38.
This commit is contained in:
Florine W. Dekker 2020-08-12 11:32:23 +02:00
parent fd96cfd574
commit 51c91900ff
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -127,7 +127,7 @@ doAfterLoad(async () => {
// Read inputs from cookies
const apiUrl = localStorage.getItem("/tools/interlanguage-checker//api-url");
if (apiUrl !== undefined && apiUrl.trim() !== "") {
if (apiUrl !== null && apiUrl.trim() !== "") {
urlInput.setValue(apiUrl);
articleInput.input.focus();
}