@@ -193,7 +193,7 @@ export function updateEmulatorBanner(
193
193
if (
194
194
typeof window === 'undefined' ||
195
195
typeof document === 'undefined' ||
196
- // !isCloudWorkstation(window.location.host) ||
196
+ ! isCloudWorkstation ( window . location . host ) ||
197
197
emulatorStatus [ name ] === isRunningEmulator ||
198
198
emulatorStatus [ name ] || // If already set to use emulator, can't go back to prod.
199
199
previouslyDismissed
@@ -217,7 +217,7 @@ export function updateEmulatorBanner(
217
217
}
218
218
}
219
219
220
- function setupBannerStyles ( bannerEl : HTMLElement ) {
220
+ function setupBannerStyles ( bannerEl : HTMLElement ) : void {
221
221
bannerEl . style . display = 'flex' ;
222
222
bannerEl . style . background = '#7faaf0' ;
223
223
bannerEl . style . position = 'absolute' ;
@@ -228,7 +228,7 @@ export function updateEmulatorBanner(
228
228
bannerEl . style . alignContent = 'center' ;
229
229
}
230
230
231
- function setupIconStyles ( prependIcon : SVGElement , iconId : string ) {
231
+ function setupIconStyles ( prependIcon : SVGElement , iconId : string ) : void {
232
232
prependIcon . setAttribute ( 'width' , '24' ) ;
233
233
prependIcon . setAttribute ( 'id' , iconId ) ;
234
234
prependIcon . setAttribute ( 'height' , '24' ) ;
@@ -237,7 +237,7 @@ export function updateEmulatorBanner(
237
237
prependIcon . style . marginLeft = '-6px' ;
238
238
}
239
239
240
- function setupCloseBtn ( ) {
240
+ function setupCloseBtn ( ) : HTMLSpanElement {
241
241
const closeBtn = document . createElement ( 'span' ) ;
242
242
closeBtn . style . cursor = 'pointer' ;
243
243
closeBtn . style . paddingLeft = '5px' ;
0 commit comments