We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c67f05 commit 716946bCopy full SHA for 716946b
README.md
@@ -8,7 +8,7 @@
8
9
## Installing
10
Install using NPM
11
-```
+```sh
12
npm install vue-electron --save
13
```
14
index.js
@@ -1,5 +1,13 @@
1
+const electron = require('electron')
2
+
3
module.exports = {
4
install: function (Vue) {
- Vue.prototype.$electron = require('electron')
- }
5
+ Object.defineProperties(Vue.prototype, {
6
+ $electron: {
7
+ get () {
+ return electron
+ },
+ })
}
0 commit comments