diff --git a/desktop/app/src/chrome/plugin-manager/__tests__/__snapshots__/PluginInstaller.node.tsx.snap b/desktop/app/src/chrome/plugin-manager/__tests__/__snapshots__/PluginInstaller.node.tsx.snap index a92c666c9..dcec721ae 100644 --- a/desktop/app/src/chrome/plugin-manager/__tests__/__snapshots__/PluginInstaller.node.tsx.snap +++ b/desktop/app/src/chrome/plugin-manager/__tests__/__snapshots__/PluginInstaller.node.tsx.snap @@ -144,10 +144,10 @@ exports[`load PluginInstaller list 1`] = ` href="https://yarnpkg.com/en/package/flipper-plugin-hello" >
@@ -214,10 +214,10 @@ exports[`load PluginInstaller list 1`] = ` href="https://yarnpkg.com/en/package/flipper-plugin-world" >
@@ -259,7 +259,7 @@ exports[`load PluginInstaller list 1`] = ` alt="dots-3-circle" class="ersmi543 css-6iptsk-ColoredIconBlack-CenteredGlyph e528dze1" size="16" - src="https://external.xx.fbcdn.net/assets/?name=dots-3-circle&variant=outline&size=16&set=facebook_icons&density=1x" + src="https://facebook.com/assets/?name=dots-3-circle&variant=outline&size=16&set=facebook_icons&density=1x" title="Open file selection dialog" /> @@ -270,10 +270,10 @@ exports[`load PluginInstaller list 1`] = ` class="css-auhar3-TooltipContainer e1abcqbd0" >
@@ -446,10 +446,10 @@ exports[`load PluginInstaller list with one plugin installed 1`] = ` href="https://yarnpkg.com/en/package/flipper-plugin-hello" >
@@ -516,10 +516,10 @@ exports[`load PluginInstaller list with one plugin installed 1`] = ` href="https://yarnpkg.com/en/package/flipper-plugin-world" >
@@ -561,7 +561,7 @@ exports[`load PluginInstaller list with one plugin installed 1`] = ` alt="dots-3-circle" class="ersmi543 css-6iptsk-ColoredIconBlack-CenteredGlyph e528dze1" size="16" - src="https://external.xx.fbcdn.net/assets/?name=dots-3-circle&variant=outline&size=16&set=facebook_icons&density=1x" + src="https://facebook.com/assets/?name=dots-3-circle&variant=outline&size=16&set=facebook_icons&density=1x" title="Open file selection dialog" /> @@ -572,10 +572,10 @@ exports[`load PluginInstaller list with one plugin installed 1`] = ` class="css-auhar3-TooltipContainer e1abcqbd0" >
diff --git a/desktop/app/src/utils/__tests__/icons.node.ts b/desktop/app/src/utils/__tests__/icons.node.ts index 901f09695..eb52b7d50 100644 --- a/desktop/app/src/utils/__tests__/icons.node.ts +++ b/desktop/app/src/utils/__tests__/icons.node.ts @@ -23,13 +23,13 @@ test('outline icons get correct local path', () => { test('filled icons get correct URL', () => { const iconUrl = buildIconURL('star', 12, 2); expect(iconUrl).toBe( - 'https://external.xx.fbcdn.net/assets/?name=star&variant=filled&size=12&set=facebook_icons&density=2x', + 'https://facebook.com/assets/?name=star&variant=filled&size=12&set=facebook_icons&density=2x', ); }); test('outline icons get correct URL', () => { const iconUrl = buildIconURL('star-outline', 12, 2); expect(iconUrl).toBe( - 'https://external.xx.fbcdn.net/assets/?name=star&variant=outline&size=12&set=facebook_icons&density=2x', + 'https://facebook.com/assets/?name=star&variant=outline&size=12&set=facebook_icons&density=2x', ); }); diff --git a/desktop/app/src/utils/icons.ts b/desktop/app/src/utils/icons.ts index 00a27d783..c9a7a40af 100644 --- a/desktop/app/src/utils/icons.ts +++ b/desktop/app/src/utils/icons.ts @@ -69,7 +69,7 @@ export function buildLocalIconURL(name: string, size: number, density: number) { export function buildIconURL(name: string, size: number, density: number) { const icon = getIconPartsFromName(name); // eslint-disable-next-line prettier/prettier - const url = `https://external.xx.fbcdn.net/assets/?name=${ + const url = `https://facebook.com/assets/?name=${ icon.trimmedName }&variant=${ icon.variant