We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07fea84 commit 8327208Copy full SHA for 8327208
dotcom-rendering/src/lib/assets.ts
@@ -123,6 +123,17 @@ export const EDITIONS_CROSSWORD_SCRIPT = getScriptRegex(
123
124
export const generateScriptTags = (scripts: string[]): string[] =>
125
scripts.filter(isString).map((script) => {
126
+ // Fix to run enable Bridget on local Android emulator
127
+ if (isDev ?? script.match(APPS_SCRIPT)) {
128
+ return [
129
+ `<script type="module" src="${script}"></script>`,
130
+ `<script type="module" src="${script.replace(
131
+ 'localhost',
132
+ '10.0.2.2',
133
+ )}"></script>`,
134
+ ].join('\n');
135
+ }
136
+
137
if (
138
script.match(WEB) ??
139
script.match(WEB_VARIANT_SCRIPT) ??
0 commit comments