diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-04-05 07:26:47 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-04-05 07:26:47 -0400 |
commit | a0bfb651b6ac78bc5f391e794cce6bce5622d385 (patch) | |
tree | 4cfedde2a811ae7f79482a9c9afcaac67842be9f | |
parent | fef521cb6ace0d958bcbf27f3253c25fedc57188 (diff) | |
download | UXP-a0bfb651b6ac78bc5f391e794cce6bce5622d385.tar UXP-a0bfb651b6ac78bc5f391e794cce6bce5622d385.tar.gz UXP-a0bfb651b6ac78bc5f391e794cce6bce5622d385.tar.lz UXP-a0bfb651b6ac78bc5f391e794cce6bce5622d385.tar.xz UXP-a0bfb651b6ac78bc5f391e794cce6bce5622d385.zip |
[PALEMOON] Fix for loops in browser-thumbnails.js (SyntaxError: missing ] after element list)
-rw-r--r-- | application/palemoon/base/content/browser-thumbnails.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/application/palemoon/base/content/browser-thumbnails.js b/application/palemoon/base/content/browser-thumbnails.js index dbe33e3ed..d6fe25231 100644 --- a/application/palemoon/base/content/browser-thumbnails.js +++ b/application/palemoon/base/content/browser-thumbnails.js @@ -92,7 +92,12 @@ let gBrowserThumbnails = { filterForThumbnailExpiration: function Thumbnails_filterForThumbnailExpiration(aCallback) { - aCallback([browser.currentURI.spec for (browser of gBrowser.browsers)]); + // Tycho: aCallback([browser.currentURI.spec for (browser of gBrowser.browsers)]); + let result = []; + for (let browser of gBrowser.browsers) { + result.push(browser.currentURL.spec); + } + aCallback(result); }, /** |