"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "js/modules/link_previews.js" 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).

link_previews.js  (Signal-Desktop-1.35.2):link_previews.js  (Signal-Desktop-1.36.1)
skipping to change at line 178 skipping to change at line 178
return null; return null;
} }
} }
const MB = 1024 * 1024; const MB = 1024 * 1024;
const KB = 1024; const KB = 1024;
function getChunkPattern(size, initialOffset) { function getChunkPattern(size, initialOffset) {
if (size > MB) { if (size > MB) {
return _getRequestPattern(size, MB, initialOffset); return _getRequestPattern(size, MB, initialOffset);
} else if (size > 500 * KB) { }
if (size > 500 * KB) {
return _getRequestPattern(size, 500 * KB, initialOffset); return _getRequestPattern(size, 500 * KB, initialOffset);
} else if (size > 100 * KB) { }
if (size > 100 * KB) {
return _getRequestPattern(size, 100 * KB, initialOffset); return _getRequestPattern(size, 100 * KB, initialOffset);
} else if (size > 50 * KB) { }
if (size > 50 * KB) {
return _getRequestPattern(size, 50 * KB, initialOffset); return _getRequestPattern(size, 50 * KB, initialOffset);
} else if (size > 10 * KB) { }
if (size > 10 * KB) {
return _getRequestPattern(size, 10 * KB, initialOffset); return _getRequestPattern(size, 10 * KB, initialOffset);
} else if (size > KB) { }
if (size > KB) {
return _getRequestPattern(size, KB, initialOffset); return _getRequestPattern(size, KB, initialOffset);
} }
return { return {
start: { start: {
start: initialOffset, start: initialOffset,
end: size - 1, end: size - 1,
}, },
}; };
} }
 End of changes. 5 change blocks. 
5 lines changed or deleted 10 lines changed or added

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