|
|
|
@ -1,3 +1,9 @@
|
|
|
|
|
/* eslint-env browser */
|
|
|
|
|
|
|
|
|
|
/* global i18n: false */
|
|
|
|
|
/* global Whisper: false */
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line func-names
|
|
|
|
|
(function () {
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
@ -22,6 +28,7 @@
|
|
|
|
|
this.render();
|
|
|
|
|
this.$('textarea').val(i18n('loading'));
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line more/no-then
|
|
|
|
|
window.log.fetch().then((text) => {
|
|
|
|
|
this.$('textarea').val(text);
|
|
|
|
|
});
|
|
|
|
@ -47,7 +54,8 @@
|
|
|
|
|
if (text.length === 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
log.publish(text).then((url) => {
|
|
|
|
|
// eslint-disable-next-line more/no-then
|
|
|
|
|
window.log.publish(text).then((url) => {
|
|
|
|
|
const view = new Whisper.DebugLogLinkView({
|
|
|
|
|
url,
|
|
|
|
|
el: this.$('.result'),
|
|
|
|
|