-
Notifications
You must be signed in to change notification settings - Fork 930
Fix IE11 broken by Crypto change. #2832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -75,6 +75,8 @@ export class BrowserPlatform implements Platform { | |||
} | |||
|
|||
const v = new Uint8Array(nBytes); | |||
// Polyfill for IE11. | |||
const crypto = window.crypto || (window as any).msCrypto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably need to suppress eslint here to pass tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like you could do this once at the top of the file (after imports before the class).
Binary Size ReportAffected SDKs
Test Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -75,6 +75,8 @@ export class BrowserPlatform implements Platform { | |||
} | |||
|
|||
const v = new Uint8Array(nBytes); | |||
// Polyfill for IE11. | |||
const crypto = window.crypto || (window as any).msCrypto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like you could do this once at the top of the file (after imports before the class).
Fix for #2827