Skip to content

Commit

Permalink
Apply feedback - modified electron import
Browse files Browse the repository at this point in the history
  • Loading branch information
denscollo authored and tonyanziano committed Sep 4, 2019
1 parent 24c6721 commit cc73e75
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -33,7 +33,7 @@

// Cheating here and pulling in a module from node. Can be easily replaced if we ever move the emulator to the web.
// @ts-ignore
import * as Electron from 'electron';
import { clipboard } from 'electron';
import {
EmulatorChannel,
ExtensionChannel,
Expand Down Expand Up @@ -368,7 +368,7 @@ export class Inspector extends React.Component<InspectorProps, InspectorState> {
const id = event.currentTarget.name;

if (id == 'copyJson') {
return Electron.clipboard.writeText(JSON.stringify(this.state.inspectObj, null, 2));
return clipboard.writeText(JSON.stringify(this.state.inspectObj, null, 2));
}

const { currentState } = event.currentTarget.dataset;
Expand Down

0 comments on commit cc73e75

Please sign in to comment.