Fix lint errors

This commit is contained in:
Daniel Gasienica 2018-03-05 17:57:23 -05:00
parent 325c0628cd
commit 168788600a

View file

@ -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'),