mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 22:30:34 +03:00
Fix typos
This commit is contained in:
@@ -2,10 +2,10 @@ export default function _updateTagAttributes (options = {}) {
|
|||||||
const { attribute } = options
|
const { attribute } = options
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* updates the document's html tag attributes
|
* Updates the document's html tag attributes
|
||||||
*
|
*
|
||||||
* @param {Object} attrs - the new document html attributes
|
* @param {Object} attrs - the new document html attributes
|
||||||
* @param {HTMLElement} tag - the HTMLElment tag to update with new attrs
|
* @param {HTMLElement} tag - the HTMLElement tag to update with new attrs
|
||||||
*/
|
*/
|
||||||
return function updateTagAttributes (attrs, tag) {
|
return function updateTagAttributes (attrs, tag) {
|
||||||
const vueMetaAttrString = tag.getAttribute(attribute)
|
const vueMetaAttrString = tag.getAttribute(attribute)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
export default function _updateTitle () {
|
export default function _updateTitle () {
|
||||||
/**
|
/**
|
||||||
* updates the document title
|
* Updates the document title
|
||||||
*
|
*
|
||||||
* @param {String} title - the new title of the document
|
* @param {String} title - the new title of the document
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default function _tagGenerator (options = {}) {
|
|||||||
// these tag types will have content inserted
|
// these tag types will have content inserted
|
||||||
const closed = ['noscript', 'script', 'style'].indexOf(type) === -1
|
const closed = ['noscript', 'script', 'style'].indexOf(type) === -1
|
||||||
|
|
||||||
// generate tag exactly without any other redundance attribute
|
// generate tag exactly without any other redundant attribute
|
||||||
const observeTag = tag.once
|
const observeTag = tag.once
|
||||||
? ''
|
? ''
|
||||||
: `${attribute}="true" `
|
: `${attribute}="true" `
|
||||||
|
|||||||
Reference in New Issue
Block a user