removed old log submit code.
This commit is contained in:
parent
8180200b3a
commit
6da08b807c
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue