commit | e796fe37f1e6cc0735d5d32f785bd6bd20a835df | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Fri Oct 02 21:29:59 2020 +0200 |
committer | GitHub <noreply@github.com> | Fri Oct 02 21:29:59 2020 +0200 |
tree | d5ddca337c303a99935d742f817347ac7403d4ff | |
parent | 8e2aaeba8ec9d10a69ce85bfeeb4a90828fc4a0b [diff] |
fix(Api): do not depend on globals (#169) The use of globals in the bridge Api broke a few use-cases: - loading the bridge Api from two different locations - requiring `cordova-electron` without setting the globals first This change refactors the run module back to an "extension method" of Api. That is, it has to be called with `this` set to an Api instance. This pattern is also used for `build` and `run` and it is pretty common among the other platforms as well.
Electron is a framework that uses web technologies (HTML, CSS, and JS) to build cross-platform desktop applications.
$ npm install -g cordova@latest $ cordova create helloworld $ cd helloworld $ cordova platform add electron $ cordova run electron
For more documentation, please refer to the DOCUMENTATION.md file.
The Apache Cordova team would like to thank Ibby Hadeed for transferring the cordova-electron
npm package name to Apache Cordova. Thanks!