Fix lint errors
This commit is contained in:
parent
325c0628cd
commit
168788600a
1 changed files with 9 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue