@@ -252,8 +252,7 @@ export function updateEmulatorBanner(
252252
253253 function setupLinkStyles (
254254 learnMoreLink : HTMLAnchorElement ,
255- learnMoreId : string ,
256- svgElement : SVGElement
255+ learnMoreId : string
257256 ) : void {
258257 learnMoreLink . setAttribute ( 'id' , learnMoreId ) ;
259258 learnMoreLink . innerText = 'Learn more' ;
@@ -262,16 +261,6 @@ export function updateEmulatorBanner(
262261 learnMoreLink . setAttribute ( 'target' , '__blank' ) ;
263262 learnMoreLink . style . paddingLeft = '5px' ;
264263 learnMoreLink . style . textDecoration = 'underline' ;
265- learnMoreLink . appendChild ( svgElement ) ;
266- }
267-
268- function setupOpenExternal ( svgElement : SVGElement , id : string ) : void {
269- svgElement . setAttribute ( 'viewBox' , '0 0 16 16' ) ;
270- svgElement . setAttribute ( 'fill' , 'none' ) ;
271- svgElement . setAttribute ( 'id' , id ) ;
272- svgElement . style . width = '16px' ;
273- svgElement . style . marginLeft = '4px' ;
274- svgElement . innerHTML = `<path fill-rule="evenodd" clip-rule="evenodd" d="M12.6667 12.6667H3.33333V3.33333H8V2H3.33333C2.59333 2 2 2.6 2 3.33333V12.6667C2 13.4 2.59333 14 3.33333 14H12.6667C13.4 14 14 13.4 14 12.6667V8H12.6667V12.6667ZM9.33333 2V3.33333H11.7267L5.17333 9.88667L6.11333 10.8267L12.6667 4.27333V6.66667H14V2H9.33333Z" fill="#212121"/>` ;
275264 }
276265
277266 function setupDom ( ) : void {
@@ -289,25 +278,17 @@ export function updateEmulatorBanner(
289278 prependIconId
290279 ) as HTMLOrSVGElement as SVGElement ) ||
291280 document . createElementNS ( 'http://www.w3.org/2000/svg' , 'svg' ) ;
292- const openExternalIconId = prefixedId ( 'openexternal' ) ;
293- const openExternalIcon : SVGElement =
294- ( document . getElementById (
295- openExternalIconId
296- ) as HTMLOrSVGElement as SVGElement ) ||
297- document . createElementNS ( 'http://www.w3.org/2000/svg' , 'svg' ) ;
298281 if ( banner . created ) {
299282 // update styles
300283 const bannerEl = banner . element ;
301284 setupBannerStyles ( bannerEl ) ;
302- setupOpenExternal ( openExternalIcon , openExternalIconId ) ;
303- setupLinkStyles ( learnMoreLink , learnMoreId , openExternalIcon ) ;
285+ setupLinkStyles ( learnMoreLink , learnMoreId ) ;
304286 const closeBtn = setupCloseBtn ( ) ;
305287 setupIconStyles ( prependIcon , prependIconId ) ;
306288 bannerEl . append (
307289 prependIcon ,
308290 firebaseText ,
309291 learnMoreLink ,
310- openExternalIcon ,
311292 closeBtn
312293 ) ;
313294 document . body . appendChild ( bannerEl ) ;
0 commit comments