Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing issue preventing adding of new extensions

uggrockfaccf914a4dc
diff --git a/data/js/options.ui.js b/data/js/options.ui.js
index f6331c29e..22abc44c2 100644
--- a/data/js/options.ui.js
+++ b/data/js/options.ui.js
@@ -202,14 +202,11 @@ define(function(require, exports, module) {
function collectSupportedFileTypesData() {
var data = [];
$('#fileTypesList').children().each(function(index, element) {
- // Skiping the first line with the descriptions
- if (index > 0) {
- data.push({
- 'type': $(element).find('input').val(),
- 'viewer': $(element).find('.ftviewer').val(),
- 'editor': $(element).find('.fteditor').val()
- });
- }
+ data.push({
+ 'type': $(element).find('input').val(),
+ 'viewer': $(element).find('.ftviewer').val(),
+ 'editor': $(element).find('.fteditor').val()
+ });
});
return data;
}