File tree 1 file changed +4
-3
lines changed
packages/firestore/src/platform_browser
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ import { NoopConnectivityMonitor } from '../remote/connectivity_monitor_noop';
25
25
import { BrowserConnectivityMonitor } from './browser_connectivity_monitor' ;
26
26
import { WebChannelConnection } from './webchannel_connection' ;
27
27
28
+ // Polyfill for IE
29
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
+ const crypto = window . crypto || ( window as any ) . msCrypto ;
31
+
28
32
export class BrowserPlatform implements Platform {
29
33
readonly useProto3Json = true ;
30
34
readonly base64Available : boolean ;
@@ -75,9 +79,6 @@ export class BrowserPlatform implements Platform {
75
79
}
76
80
77
81
const v = new Uint8Array ( nBytes ) ;
78
- // Polyfill for IE
79
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
80
- const crypto = window . crypto || ( window as any ) . msCrypto ;
81
82
crypto . getRandomValues ( v ) ;
82
83
return v ;
83
84
}
You can’t perform that action at this time.
0 commit comments