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

Loading additional .js files in Electron #1928

Closed
Nanofus opened this issue Jun 10, 2015 · 1 comment
Closed

Loading additional .js files in Electron #1928

Nanofus opened this issue Jun 10, 2015 · 1 comment

Comments

@Nanofus
Copy link

Nanofus commented Jun 10, 2015

The documentation seems to be missing information on this.

I've added jQuery to my project as described here. It seems that to load additional .js scripts into a window you have to use require to get them, as loading Twitter Bootstrap in a <script> tag causes Uncaught Error: Bootstrap's JavaScript requires jQuery error, even though jQuery is loaded. How exactly do I do this?

Thanks in advance!

@Nanofus Nanofus changed the title Loading additional .js files with Electron Loading additional .js files in Electron Jun 10, 2015
@zcbenz
Copy link
Member

zcbenz commented Jun 12, 2015

You should put the <script> tag after require('jquery');.

@zcbenz zcbenz closed this as completed Jun 12, 2015
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

No branches or pull requests

2 participants