mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 08:40:33 +03:00
remove redundant code
This commit is contained in:
@@ -18,7 +18,7 @@ const tags = [
|
|||||||
*
|
*
|
||||||
* @param {Object} newInfo - the meta info to update to
|
* @param {Object} newInfo - the meta info to update to
|
||||||
*/
|
*/
|
||||||
export default function updateClientMetaInfo (newInfo, $root) {
|
export default function updateClientMetaInfo (newInfo) {
|
||||||
const htmlTag = document.getElementsByTagName('html')[0]
|
const htmlTag = document.getElementsByTagName('html')[0]
|
||||||
// if this is not a server render, then update
|
// if this is not a server render, then update
|
||||||
if (htmlTag.getAttribute(SERVER_RENDERED_ATTRIBUTE) === null) {
|
if (htmlTag.getAttribute(SERVER_RENDERED_ATTRIBUTE) === null) {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default function VueMeta (Vue) {
|
|||||||
requestId = null
|
requestId = null
|
||||||
|
|
||||||
// update the meta info
|
// update the meta info
|
||||||
updateClientMetaInfo(getMetaInfo(this.$root), this.$root)
|
updateClientMetaInfo(getMetaInfo(this.$root))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user