Skip to content
Permalink
Browse files

Changed require to import

  • Loading branch information...
ivanov-dan authored and tonyanziano committed May 28, 2019
1 parent 9c27961 commit b4cca951e54cb53480b32817691e6417571086dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/app/main/src/commands/emulatorCommands.ts
@@ -52,6 +52,7 @@ import { TelemetryService } from '../telemetry';
import { setCurrentUser } from '../settingsData/actions/userActions';
import { pushClientAwareSettings } from '../settingsData/actions/frameworkActions';
import { ProtocolHandler } from '../protocolHandler';
import { session } from 'electron';

const Commands = SharedConstants.Commands.Emulator;

@@ -300,7 +301,6 @@ export class EmulatorCommands {
message: 'You have successfully cleared state.',
title: 'Success!',
});
const { session } = require('electron');
await new Promise(resolve => session.defaultSession.clearStorageData({}, resolve));
}

0 comments on commit b4cca95

Please sign in to comment.
You can’t perform that action at this time.