File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ import { hasMetaInfo } from './shared/meta-helpers'
10
10
* @param {Function } Vue - the Vue constructor.
11
11
*/
12
12
function install ( Vue , options = { } ) {
13
+ if ( Vue . __vuemeta_installed ) {
14
+ return
15
+ }
16
+
17
+ Vue . __vuemeta_installed = true
18
+
13
19
options = setOptions ( options )
14
20
15
21
Vue . prototype . $meta = $meta ( options )
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ import { hasMetaInfo } from './shared/meta-helpers'
9
9
* @param {Function } Vue - the Vue constructor.
10
10
*/
11
11
function install ( Vue , options = { } ) {
12
+ if ( Vue . __vuemeta_installed ) {
13
+ return
14
+ }
15
+
16
+ Vue . __vuemeta_installed = true
17
+
12
18
options = setOptions ( options )
13
19
14
20
Vue . prototype . $meta = $meta ( options )
You can’t perform that action at this time.
0 commit comments