Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

No effect after setting metaInfo #596

@geekplux

Description

@geekplux

Bug report

Steps to reproduce

setting metaInfo in head or setHead():

  setHead(function() {
    return {
      metaInfo: {
        script: [
          {
            innerHTML: 'console.log("I am in body");',
            type: 'text/javascript',
            body: true
          }
        ]
      }
    }
  })

What is expected?

a <script> tag would be inserted before </body>

What is actually happening?

Other relevant information

  • Result of running saber -v: 0.11.5
  • Browser version (optional):
  • Is Saber a global or local install? local
  • Which package manager did you use for the install? yarn
  • Does this issue occur when all plugins are disabled? no

may just solve it by upgrading vue-meta to v2.1+ (now 2.0.4 https://github.com/saberland/saber/blob/master/packages/saber/package.json#L66)?

https://vue-meta.nuxtjs.org/api/#pbody

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions