Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fallback if navigator.language fails
Browse files Browse the repository at this point in the history
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
@@ -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,
}),
})

0 comments on commit 078257b

Please sign in to comment.