Skip to content

Commit

Permalink
fix: add error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskuske authored Nov 30, 2023
1 parent 78c2f6d commit 2759ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/scrape-html.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const scrapeHTML = async url => {

return data
} catch (error) {
console.error(error)
console.log(`Using fallback for ${url}...`)
return { name: url.replace(/^(https?\:)?\/\//, ''), icon: join(url, 'favicon.ico') }
}
Expand Down
2 changes: 1 addition & 1 deletion serviceworker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const CACHE_NAME = 'fluent-tab-v12'
const CACHE_NAME = 'fluent-tab-v13'

const staticAssets = [
'.',
Expand Down

0 comments on commit 2759ea7

Please sign in to comment.