mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-03 22:07:30 +09:00
[PALEMOON] Fix for loops in DownloadsCommon.jsm and WindowsPreviewPerTab.jsm
(SyntaxError: missing ] after element list)
This commit is contained in:
parent
47e1dee242
commit
1344bfe691
2 changed files with 21 additions and 4 deletions
|
|
@ -510,7 +510,14 @@ TabWindow.prototype = {
|
|||
|
||||
// Previews are internally stored using a map, so we need to iterate over
|
||||
// the tabbrowser's array of tabs to retrieve previews in the same order.
|
||||
let inorder = [previews.get(t) for (t of tabs) if (previews.has(t))];
|
||||
// Tycho: let inorder = [previews.get(t) for (t of tabs) if (previews.has(t))];
|
||||
let inorder = [];
|
||||
|
||||
for (let t of tabs) {
|
||||
if (previews.has(t)) {
|
||||
inorder.push(previews.get(t));
|
||||
}
|
||||
}
|
||||
|
||||
// Since the internal taskbar array has not yet been updated, we must force
|
||||
// the sorting order of our local array on it. To do so, we must walk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue