File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 44
55A simple and lightweight Vue modal component for __ Vue 2.x__ .
66
7+
8+ ## Documentation
9+
710Docs: https://initbase.github.io/vue-modal-2/
811
12+
913## Demo
1014[ demo codesandbox] ( https://codesandbox.io/s/vue-modal-2-vue2-forked-rfxwr )
1115
Original file line number Diff line number Diff line change 11{
22 "name" : " @burhanahmeed/vue-modal-2" ,
3- "version" : " 1.1.9 " ,
3+ "version" : " 1.1.10 " ,
44 "private" : false ,
55 "author" : " Burhanuddin Ahmed <brhn@kusiaga.com>" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -28,4 +28,14 @@ const plugin = {
2828 }
2929} ;
3030
31+ let GlobalVue = null ;
32+ if ( typeof window !== 'undefined' ) {
33+ GlobalVue = window . Vue ;
34+ } else if ( typeof global !== 'undefined' ) {
35+ GlobalVue = global . Vue ;
36+ }
37+ if ( GlobalVue ) {
38+ GlobalVue . use ( plugin ) ;
39+ }
40+
3141export default plugin ;
You can’t perform that action at this time.
0 commit comments