Skip to content

Commit

Permalink
Fix FF-specific URL normalization bug in content scripts
Browse files Browse the repository at this point in the history
- See memex-common commit for more info
  • Loading branch information
poltak committed Jul 18, 2024
1 parent 835dcc2 commit 9f1460d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion external/@worldbrain/memex-common
2 changes: 2 additions & 0 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import delay from './util/delay'
import { fetchPageData } from '@worldbrain/memex-common/lib/page-indexing/fetch-page-data'
import fetchAndExtractPdfContent from '@worldbrain/memex-common/lib/page-indexing/fetch-page-data/fetch-pdf-data.browser'
import { CloudflareImageSupportBackend } from '@worldbrain/memex-common/lib/image-support/backend'
import { normalizeUrl } from '@worldbrain/memex-common/lib/url-utils/normalize'

let __debugCounter = 0
let __BGInitAttemptCounter = 0
Expand Down Expand Up @@ -227,6 +228,7 @@ export async function main(): Promise<void> {
globalThis['analytics'] = analytics
globalThis['dataSeeders'] = setupDataSeeders(storageManager)
globalThis['setStorageLoggingEnabled'] = setStorageLoggingEnabled
globalThis['normalizeUrl'] = normalizeUrl

if (process.env.NODE_ENV === 'development') {
globalThis['selfTests'] = createSelfTests({
Expand Down

0 comments on commit 9f1460d

Please sign in to comment.