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 () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -22,6 +28,7 @@
|
||||||
this.render();
|
this.render();
|
||||||
this.$('textarea').val(i18n('loading'));
|
this.$('textarea').val(i18n('loading'));
|
||||||
|
|
||||||
|
// eslint-disable-next-line more/no-then
|
||||||
window.log.fetch().then((text) => {
|
window.log.fetch().then((text) => {
|
||||||
this.$('textarea').val(text);
|
this.$('textarea').val(text);
|
||||||
});
|
});
|
||||||
|
@ -47,7 +54,8 @@
|
||||||
if (text.length === 0) {
|
if (text.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
log.publish(text).then((url) => {
|
// eslint-disable-next-line more/no-then
|
||||||
|
window.log.publish(text).then((url) => {
|
||||||
const view = new Whisper.DebugLogLinkView({
|
const view = new Whisper.DebugLogLinkView({
|
||||||
url,
|
url,
|
||||||
el: this.$('.result'),
|
el: this.$('.result'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue