Skip to content

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

style checking

uggrock3f09ea0d0456
diff --git a/data/chromelight/popup.js b/data/chromelight/popup.js
index b3cd2cc81..315c802dd 100644
--- a/data/chromelight/popup.js
+++ b/data/chromelight/popup.js
@@ -243,8 +243,8 @@
function getFileExt(fileName) {
var ext = fileName.replace(/^.*?\.([a-zA-Z0-9]+)$/, "$1");
- var supportedExts = ["png", "jpg", "jpeg","svg", "webp", "gif","pdf", "ogg", "mp4"]
- return (supportedExts.indexOf(ext) >= 0) ? ext : "mhtml";
+ var supportedExts = ["png", "jpg", "jpeg", "svg", "webp", "gif", "pdf", "ogg", "mp4"];
+ return (supportedExts.indexOf(ext) >= 0) ? ext : "mhtml";
}
$(document).ready(init);
diff --git a/data/js/options.ui.js b/data/js/options.ui.js
index 4b7d97738..c11ac3ef8 100644
--- a/data/js/options.ui.js
+++ b/data/js/options.ui.js
@@ -27,7 +27,7 @@ define(function(require, exports, module) {
.append($('<button class="btn btn-link" style="width: 40px" data-i18n="[title]ns.dialogs:removePerspectiveTooltip"><i class="fa fa-times"></button>')
.click(function() {
$(this).parent().parent().remove();
- }))).i18n();
+ }))).i18n();
generateSelectOptions(perspectiveControl.find('select'), TSCORE.Config.getPerspectiveExtensions(), perspectiveId);
parent.append(perspectiveControl);
}
@@ -41,7 +41,7 @@ define(function(require, exports, module) {
.append($('<button style="width: 30px" class="btn btn-link" data-i18n="[title]ns.dialogs:removeFileTypeTooltip"><i class="fa fa-times"></button>')
.click(function() {
$(this).parent().parent().remove();
- }))).i18n();
+ }))).i18n();
generateSelectOptions(fileTypeControl.find('.ftviewer'), TSCORE.Config.getViewerExtensions(), viewerId);
generateSelectOptions(fileTypeControl.find('.fteditor'), TSCORE.Config.getEditorExtensions(), editorId);
parent.append(fileTypeControl);