2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-06 04:52:24 +03:00

remove redundant code

This commit is contained in:
Declan de Wet
2016-11-04 09:32:48 +02:00
parent 716307a2ce
commit bc36f4cc4b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ const tags = [
*
* @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]
// if this is not a server render, then update
if (htmlTag.getAttribute(SERVER_RENDERED_ATTRIBUTE) === null) {
+1 -1
View File
@@ -28,7 +28,7 @@ export default function VueMeta (Vue) {
requestId = null
// update the meta info
updateClientMetaInfo(getMetaInfo(this.$root), this.$root)
updateClientMetaInfo(getMetaInfo(this.$root))
})
}
})