Skip to content

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

Open
mjsisley wants to merge 2 commits into
josephernest:masterfrom
mjsisley:master
Open

Add javascript to make work in Electron out of box#26
mjsisley wants to merge 2 commits into
josephernest:masterfrom
mjsisley:master

Conversation

@mjsisley

@mjsisley mjsisley commented Nov 4, 2017

Copy link
Copy Markdown

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

Comment thread index.html Outdated

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

@josephernest josephernest Nov 4, 2017

Copy link
Copy Markdown
Owner

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
Copy Markdown
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