Skip to content

Commit

Permalink
Fix electron import by adding 'const electron = window.require(electr…
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlSobischDigitium committed May 17, 2020
1 parent bdf6ba3 commit d22aa7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hackbois-react/src/components/savebutton/Savebutton.js
Expand Up @@ -11,7 +11,7 @@ class Savebutton extends React.Component {

render() {
return (
<button onclick={this.handleClick}>Click me</button>
<button onClick={this.handleClick}>Click me</button>
);
}
}
Expand Down
2 changes: 2 additions & 0 deletions hackbois-react/src/index.js
Expand Up @@ -4,6 +4,8 @@ import './index.css';
import App from './components/app/App';
import * as serviceWorker from './serviceWorker';

const electron = window.require("electron")

ReactDOM.render(
<React.StrictMode>
<App />
Expand Down

0 comments on commit d22aa7c

Please sign in to comment.