Work around type inference failure in TS 3.9

https://github.com/microsoft/TypeScript/issues/39057
This commit is contained in:
Andrew Casey 2020-06-12 15:51:55 -07:00
parent 289ac3d71e
commit da42a69f19

View file

@ -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;