Work around type inference failure in TS 3.9
https://github.com/microsoft/TypeScript/issues/39057
This commit is contained in:
parent
289ac3d71e
commit
da42a69f19
|
@ -99,7 +99,7 @@ export class Emulator extends React.Component<{}, EmulatorState> {
|
|||
});
|
||||
};
|
||||
|
||||
window.onbeforeunload = event => {
|
||||
window.onbeforeunload = (event: BeforeUnloadEvent) => {
|
||||
if (this.isQuitting || this.isResetting) {
|
||||
console.log(`Unload: Not preventing`);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue