diff --git a/debug_log_preload.js b/debug_log_preload.js index a4ece34ea..d19b4e646 100644 --- a/debug_log_preload.js +++ b/debug_log_preload.js @@ -1,10 +1,8 @@ /* global window */ -const { ipcRenderer, remote } = require('electron'); +const { ipcRenderer } = require('electron'); const url = require('url'); const i18n = require('./js/modules/i18n'); -const fs = require('fs'); -const path = require('path'); const config = url.parse(window.location.toString(), true).query; const { locale } = config; diff --git a/js/views/debug_log_view.js b/js/views/debug_log_view.js index 3bcf679bf..d00d4b387 100644 --- a/js/views/debug_log_view.js +++ b/js/views/debug_log_view.js @@ -57,26 +57,6 @@ if (text.length === 0) { return; } - - // this.$('.buttons, textarea').remove(); - // this.$('.result').addClass('loading'); - - // try { - // const publishedLogURL = await window.log.publish(text); - // const view = new Whisper.DebugLogLinkView({ - // url: publishedLogURL, - // el: this.$('.result'), - // }); - // this.$('.loading').removeClass('loading'); - // view.render(); - // this.$('.link') - // .focus() - // .select(); - // } catch (error) { - // window.log.error('DebugLogView error:', error && error.stack ? error.stack : error); - // this.$('.loading').removeClass('loading'); - // this.$('.result').text(i18n('debugLogError')); - // } window.saveLog(text); }, });