Browse Source

Fix empty notification

master
morethanwords 4 years ago
parent
commit
f0cdecc5b8
  1. 2
      src/components/horizontalMenu.ts
  2. 16
      src/lib/appManagers/appSidebarRight.ts

2
src/components/horizontalMenu.ts

@ -146,7 +146,7 @@ export function horizontalMenu(tabs: HTMLElement, content: HTMLElement, onClick? @@ -146,7 +146,7 @@ export function horizontalMenu(tabs: HTMLElement, content: HTMLElement, onClick?
const scaleFactor = currentIndicator.clientWidth / indicator.clientWidth;
indicator.style.transform = `translate3d(${shiftLeft}px, 0, 0) scale3d(${scaleFactor}, 1, 1)`;
console.log(`translate3d(${shiftLeft}px, 0, 0) scale3d(${scaleFactor}, 1, 1)`);
//console.log(`translate3d(${shiftLeft}px, 0, 0) scale3d(${scaleFactor}, 1, 1)`);
requestAnimationFrame(() => {
// Now we remove the transform to let it animate to its own position and size.

16
src/lib/appManagers/appSidebarRight.ts

@ -619,16 +619,16 @@ export class AppSidebarRight extends SidebarSlider { @@ -619,16 +619,16 @@ export class AppSidebarRight extends SidebarSlider {
if(this.loadMutex) {
promises.push(this.loadMutex);
}
if(promises.length) {
await Promise.all(promises);
if(this.peerID != peerID) {
this.log.warn('peer changed');
return;
}
}
if(elemsToAppend.length) {
if(promises.length) {
await Promise.all(promises);
if(this.peerID != peerID) {
this.log.warn('peer changed');
return;
}
}
sharedMediaDiv.append(...elemsToAppend);
}

Loading…
Cancel
Save