Merge pull request #1858 from overleaf/em-fix-file-preview

Fix a typo that breaks file preview

GitOrigin-RevId: d7aa7e8090bfe36414455741c3dd970bc6835d92
This commit is contained in:
Eric Mc Sween 2019-06-11 14:23:52 -04:00 committed by sharelatex
parent 4583c25b1b
commit 9ca3b68efc

View file

@ -38,7 +38,7 @@ define(['base', 'moment'], (App, moment) =>
return textExtensions.indexOf(extension($scope.openFile)) > -1
}
$scope.isImageFile = () => {
return imageExtentions.indexOf(extension($scope.openFile)) > -1
return imageExtensions.indexOf(extension($scope.openFile)) > -1
}
$scope.isPreviewableFile = () => {
return previewableExtensions.indexOf(extension($scope.openFile)) > -1