Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayterDev committed Jul 3, 2024
1 parent 9002078 commit 315470f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions shared/js/background/broken-site-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Learn more at https://duck.co/help/privacy/atb
*
*/
import browser from 'webextension-polyfill'
const load = require('./load')
const browserWrapper = require('./wrapper')
const settings = require('./settings')
Expand Down Expand Up @@ -36,7 +35,7 @@ function constructUrl (querystring, truncate) {
const randomNum = Math.ceil(Math.random() * 1e7)
const pixelName = 'epbf'
const browserInfo = parseUserAgentString()
const browserName = browserInfo?.browser
const browser = browserInfo?.browser
const extensionVersion = browserWrapper.getExtensionVersion()
const atb = settings.getSetting('atb')

Expand All @@ -56,8 +55,8 @@ function constructUrl (querystring, truncate) {
}
// build url string
let url = getURL(pixelName)
if (browserName) {
url += `_${browserName.toLowerCase()}`
if (browser) {
url += `_${browser.toLowerCase()}`
}
// random number cache buster
url += `?${randomNum}&`
Expand Down

0 comments on commit 315470f

Please sign in to comment.