diff --git a/external/@worldbrain/memex-common b/external/@worldbrain/memex-common index 31cc7011ed..46f04a9684 160000 --- a/external/@worldbrain/memex-common +++ b/external/@worldbrain/memex-common @@ -1 +1 @@ -Subproject commit 31cc7011edda1d7a73d18f0a1dc7a34c1c258bf1 +Subproject commit 46f04a9684c01bba73becf4905e07382ff519f88 diff --git a/src/background.ts b/src/background.ts index 6ef01cb268..868641b799 100644 --- a/src/background.ts +++ b/src/background.ts @@ -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 @@ -227,6 +228,7 @@ export async function main(): Promise { globalThis['analytics'] = analytics globalThis['dataSeeders'] = setupDataSeeders(storageManager) globalThis['setStorageLoggingEnabled'] = setStorageLoggingEnabled + globalThis['normalizeUrl'] = normalizeUrl if (process.env.NODE_ENV === 'development') { globalThis['selfTests'] = createSelfTests({