-
Notifications
You must be signed in to change notification settings - Fork 43
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
Electron error #168
Comments
it's ok, when amd/commonjs is available, then alight works via "require" instead of put it to window |
But it's not ok in electron browser. |
why? you can do: window.alight = require('alight') |
Because I'm using it as a client library for ui and load it from bower component directory with |
some developers use requirejs for client libraries, and window shouldn't be spoiled. |
I've tried alightInitCallback but with no success. Now I'm using require method. But I think It should be solved somehow or clarified in the doc. |
I increased priority for "alightInitCallback", now it will test before define/require.
I will add it to FAQ, if you have idea how to fix it, tell me (problem: if requirejs is used, then global alight shouldn't be created) |
I think it should be detected |
it checks if define is exist: https://github.com/lega911/angular-light/blob/master/src/js/postfix.js#L10 |
So we have wrong behaviour in atom when Code duplication found https://github.com/lega911/angular-light/blob/master/src/js/postfix.js#L16 |
what do you propose?
yes, thank you, I had fixed it |
Electron node.js application has both
module.exports
andwindow
variables and thus alight get into module.exports instead of window variable.The text was updated successfully, but these errors were encountered: