chore: fix linting errors

This commit is contained in:
Jelle Glebbeek
2021-10-18 20:51:51 +02:00
parent 282c93f2ea
commit 3f0127ac7a
3 changed files with 5 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ module.exports = {
],
"complexity": [
"error",
{ "max": 30 }
{ "max": 36 }
],
"computed-property-spacing": [
"error",

View File

@@ -1,6 +1,8 @@
const axios = require("axios");
const fs = require("fs");
const Sentry = require("@sentry/node");
const util = require('util');
const exec = util.promisify(require('child_process').exec);
class BinaryUpdater {

View File

@@ -104,8 +104,8 @@ async function init() {
//Initialize select2
$("#subsLang").select2({width: '75%', placeholder: "Select subtitles", language: {noResults: () => "No subtitles found"}});
$("#autoGenSubsLang").select2({width: '75%', placeholder: "Select auto-generated subtitles", language: {noResults: () => "No subtitles found"}} );
$("#sponsorblockMark").select2({width: '75%', placeholder: "Select sections of a video to mark" });
$("#sponsorblockRemove").select2({width: '75%', placeholder: "Select sections of a video to remove" });
$("#sponsorblockMark").select2({width: '75%', placeholder: "Select sections of a video to mark"});
$("#sponsorblockRemove").select2({width: '75%', placeholder: "Select sections of a video to remove"});
//Add url when user presses enter, but prevent default behavior
$(document).on("keydown", "form", function(event) {