diff --git a/src/app/js/app.js b/src/app/js/app.js index e7e926d..72d1eb3 100644 --- a/src/app/js/app.js +++ b/src/app/js/app.js @@ -1,4 +1,4 @@ -const shared = require(global.__dirname+'/../js/shared'); +const shared = require(global.__dirname + '/../js/shared'); $(function() { const Config = require('electron-config'); const config = new Config(); @@ -8,11 +8,11 @@ $(function() { var download_progress = $('#download-progress'); var format = "mp3"; - if(typeof config.get('format') !== 'undefined'){ + if (typeof config.get('format') !== 'undefined') { format = config.get('format'); } var path = ""; - if(typeof config.get('path') !== 'undefined'){ + if (typeof config.get('path') !== 'undefined') { path = config.get('path'); } var out = $('#output'); @@ -23,11 +23,11 @@ $(function() { const helperx = require('./../../controller/webLoader/router'); var shell = require('electron').shell; - //open links externally by default - $(document).on('click', 'a[href^="http"]', function(event) { - event.preventDefault(); - shell.openExternal(this.href); - }); + //open links externally by default + $(document).on('click', 'a[href^="http"]', function(event) { + event.preventDefault(); + shell.openExternal(this.href); + }); const { dialog @@ -94,7 +94,7 @@ $(function() { }); } }) - $('body').delegate('#navigota li','click',function(){ + $('body').delegate('#navigota li', 'click', function() { console.log('TEST') $('#togmenu').click(); }) @@ -148,7 +148,17 @@ $(function() { var YT = JSON.parse(body); $( `