Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add javascript to make work in Electron out of box #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
@@ -80,6 +80,7 @@

</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