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>
<head>
<meta charset="utf-8">
<title>dummy Article</title>
</head>
<body>

View File

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