Skip to content

Commit

Permalink
Add fallback if navigator.language fails
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscated-loop committed Jan 14, 2024
1 parent 8f32f0d commit 078257b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function reportWebsite(info, tab, anon, issueType, notes, callback) {
notes,
url: tab.url,
browser: getBrowserAndVersion(),
language: navigator.language,
language: navigator.language || Intl.DateTimeFormat().resolvedOptions().locale,
extensionVersion: chrome.runtime.getManifest().version,
}),
})
Expand Down

0 comments on commit 078257b

Please sign in to comment.