ssb: prettier.
This commit is contained in:
@ -121,7 +121,7 @@ class TfElement extends LitElement {
|
||||
}
|
||||
|
||||
next_channel(delta) {
|
||||
let channel_names = ['', '@', '🔐', ...this.channels.map(x => '#' + x)];
|
||||
let channel_names = ['', '@', '🔐', ...this.channels.map((x) => '#' + x)];
|
||||
let index = channel_names.indexOf(this.hash.substring(1));
|
||||
index = index != -1 ? index + delta : 0;
|
||||
tfrpc.rpc.setHash(
|
||||
@ -217,7 +217,7 @@ class TfElement extends LitElement {
|
||||
let new_cache = JSON.stringify(cache);
|
||||
if (new_cache !== original_cache) {
|
||||
let start_time = new Date();
|
||||
tfrpc.rpc.databaseSet('about', new_cache).then(function() {
|
||||
tfrpc.rpc.databaseSet('about', new_cache).then(function () {
|
||||
console.log('saving about took', (new Date() - start_time) / 1000);
|
||||
});
|
||||
}
|
||||
@ -543,13 +543,15 @@ class TfElement extends LitElement {
|
||||
)}
|
||||
</div>
|
||||
`;
|
||||
let contents = !this.loaded || this.loading
|
||||
? html`<div
|
||||
let contents =
|
||||
!this.loaded || this.loading
|
||||
? html`<div
|
||||
class="w3-display-middle w3-panel w3-theme-l5 w3-card-4 w3-padding-large w3-round-xlarge w3-xlarge"
|
||||
>
|
||||
<span class="w3-spin" style="display: inline-block">🦀</span> Loading...
|
||||
<span class="w3-spin" style="display: inline-block">🦀</span>
|
||||
Loading...
|
||||
</div>`
|
||||
: this.render_tab();
|
||||
: this.render_tab();
|
||||
return html`
|
||||
<div
|
||||
style="width: 100vw; min-height: 100vh; height: 100%"
|
||||
|
Reference in New Issue
Block a user