File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " particles-bg-vue" ,
3
- "version" : " 1.2.1 " ,
3
+ "version" : " 1.2.2 " ,
4
4
"description" : " Vue.js component for particles backgrounds" ,
5
5
"author" : " creotip@gmail.com" ,
6
6
"license" : " MIT" ,
Original file line number Diff line number Diff line change 1
- import ParticlesBg from ' ./ParticlesBg'
1
+ import ParticlesBg from " ./ParticlesBg" ;
2
2
3
3
const components = {
4
- ParticlesBg
5
- }
4
+ ParticlesBg : ParticlesBg
5
+ } ;
6
6
7
- const install = function ( Vue ) {
8
- if ( install . installed ) return
9
- Object . keys ( components ) . forEach ( key => {
10
- Vue . component ( components [ key ] . name , components [ key ] )
11
- } )
12
- }
7
+ const install = function ( Vue ) {
8
+ if ( install . installed ) return ;
9
+
10
+ for ( let key in components ) {
11
+ Vue . component ( components [ key ] . name , components [ key ] ) ;
12
+ }
13
+ } ;
13
14
14
- if ( typeof window !== ' undefined' && window . Vue ) {
15
- install ( window . Vue )
15
+ if ( typeof window !== " undefined" && window . Vue ) {
16
+ install ( window . Vue ) ;
16
17
}
17
18
18
19
const VueParticlesBg = {
@@ -21,4 +22,4 @@ const VueParticlesBg = {
21
22
} ;
22
23
23
24
export { ParticlesBg } ;
24
- export default VueParticlesBg ;
25
+ export default VueParticlesBg ;
You can’t perform that action at this time.
0 commit comments