"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/backbone/views/Lightbox.ts" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

Lightbox.ts  (Signal-Desktop-1.35.2):Lightbox.ts  (Signal-Desktop-1.36.1)
export const show = (element: HTMLElement): void => { export const show = (element: HTMLElement): void => {
const container: HTMLDivElement | null = document.querySelector( const container: HTMLDivElement | null = document.querySelector(
'.lightbox-container' '.lightbox-container'
); );
if (!container) { if (!container) {
throw new TypeError("'.lightbox-container' is required"); throw new TypeError("'.lightbox-container' is required");
} }
// tslint:disable-next-line:no-inner-html
container.innerHTML = ''; container.innerHTML = '';
container.style.display = 'block'; container.style.display = 'block';
container.appendChild(element); container.appendChild(element);
}; };
export const hide = (): void => { export const hide = (): void => {
const container: HTMLDivElement | null = document.querySelector( const container: HTMLDivElement | null = document.querySelector(
'.lightbox-container' '.lightbox-container'
); );
if (!container) { if (!container) {
return; return;
} }
// tslint:disable-next-line:no-inner-html
container.innerHTML = ''; container.innerHTML = '';
container.style.display = 'none'; container.style.display = 'none';
}; };
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)