Commit 46b2e301 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Fixed typo

parent 056ba8bd8c46
......@@ -465,7 +465,7 @@ export class DocumentSourceLinked implements DocumentSource {
/**
* Get a promise to fetch content at a URI
*/
function doFetchDcoumentLink(link: DocumentSourceLinked): Promise<RawContent> {
function doFetchDocumentLink(link: DocumentSourceLinked): Promise<RawContent> {
return new Promise(function(resolve, reject) {
let xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
......@@ -502,7 +502,7 @@ export function fetchDocument(source: DocumentSource): Promise<RawContent> {
} else if (source.sourceType == "DocumentSourcePage") {
return doFetchDocumentPage(source as DocumentSourcePage);
} else if (source.sourceType == "DocumentSourceLinked") {
return doFetchDcoumentLink(source as DocumentSourceLinked);
return doFetchDocumentLink(source as DocumentSourceLinked);
}
return new Promise((resolve, reject) => reject("Unknown data source"));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment