File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,13 @@ const flightIconSprite = require('@hashicorp/flight-icons/svg-sprite/svg-sprite-
99module . exports = {
1010 ...addonV1Shim ( __dirname ) ,
1111 contentFor ( type , config ) {
12- if ( ! config . emberFlightIcons ?. lazyEmbed && type === 'body-footer' ) {
12+ if (
13+ ! config . emberFlightIcons ?. lazyEmbed &&
14+ ! config . __flightIconsSpriteLoaded &&
15+ type === 'body-footer'
16+ ) {
17+ config . __flightIconsSpriteLoaded = true ;
18+
1319 return flightIconSprite ;
1420 }
1521 } ,
Original file line number Diff line number Diff line change @@ -8,7 +8,13 @@ const flightIconSprite = require('@hashicorp/flight-icons/svg-sprite/svg-sprite-
88module . exports = {
99 ...addonV1Shim ( __dirname ) ,
1010 contentFor ( type , config ) {
11- if ( ! config . emberFlightIcons ?. lazyEmbed && type === 'body-footer' ) {
11+ if (
12+ ! config . emberFlightIcons ?. lazyEmbed &&
13+ ! config . __flightIconsSpriteLoaded &&
14+ type === 'body-footer'
15+ ) {
16+ config . __flightIconsSpriteLoaded = true ;
17+
1218 return flightIconSprite ;
1319 }
1420 } ,
You can’t perform that action at this time.
0 commit comments