Minor fixes to avoid warnings in the browser

This commit is contained in:
mossroy 2016-01-05 22:43:08 +01:00
parent 7bb77c8e36
commit 8a0748597a
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ and open the template in the editor.
--> -->
<html> <html>
<head> <head>
<meta charset="utf-8">
<title>dummy Article</title> <title>dummy Article</title>
</head> </head>
<body> <body>

View File

@ -214,7 +214,9 @@ define(['normalize_string', 'geometry', 'title', 'util', 'titleIterators', 'q'],
else { else {
currentLocalArchiveInstance._normalizedTitles = true; currentLocalArchiveInstance._normalizedTitles = true;
} }
callback(currentLocalArchiveInstance); if (callback) {
callback(currentLocalArchiveInstance);
}
}; };
reader.readAsText(file); reader.readAsText(file);
}; };