mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Float integrity bugfix (#27224)
Stacked on #27223 When a script resource adopts certain props from a preload for that resource the integrity prop was incorrectly getting assinged to the referrerPolicy prop instead. This is now fixed.
This commit is contained in:
@@ -2872,7 +2872,7 @@ function adoptPreloadPropsForScript(
|
||||
if (scriptProps.referrerPolicy == null)
|
||||
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
|
||||
if (scriptProps.integrity == null)
|
||||
scriptProps.referrerPolicy = preloadProps.integrity;
|
||||
scriptProps.integrity = preloadProps.integrity;
|
||||
}
|
||||
|
||||
type KeyedTagCache = Map<string, Array<Element>>;
|
||||
|
||||
Reference in New Issue
Block a user