Skip to content

Commit

Permalink
Merge pull request #281 from jemacchi/fix-crossorigin-preload-assets
Browse files Browse the repository at this point in the history
Remove crossorigin from preloaded images assets
  • Loading branch information
fgravin authored Jun 29, 2022
2 parents 4f5b93c + 66a5051 commit 7256fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if [ -d "${CUSTOM_ASSETS_PATH}" ] && [ "$(ls -A ${CUSTOM_ASSETS_PATH})" ]; then
for image in ${images}
do
echo "[INFO] Adding preload link for ${image}..."
sed -i "s@<!--%PRELOAD_LINKS%-->@<!--%PRELOAD_LINKS%-->\n<link rel=\"preload\" href=\"assets/${image}\" as=\"image\" importance=\"high\" crossorigin />@" \
sed -i "s@<!--%PRELOAD_LINKS%-->@<!--%PRELOAD_LINKS%-->\n<link rel=\"preload\" href=\"assets/${image}\" as=\"image\" importance=\"high\" />@" \
${APP_FILES_PATH}index.html
done
else
Expand Down

0 comments on commit 7256fd4

Please sign in to comment.