Skip to content

Conversation

@mjsisley
Copy link

@mjsisley mjsisley commented Nov 4, 2017

Adding the following lines makes this work in an Electron environment out of the box (without affecting the browser environment).

Changes made per: https://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined

index.html Outdated

</head>
<body class="fixedheight">
<script>if (typeof module === 'object') { window.module = module; module = undefined; }</script>
Copy link
Owner

@josephernest josephernest Nov 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do:

<script>if (typeof module === 'object') { window.module = module; module = undefined; }</script>   // to make it work with Electron: https://github.com/electron/electron`

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants