Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: undefined is not an object (evaluating 'f.navigator') __ERROR #786

Open
FrankWasHello opened this issue Feb 22, 2023 · 0 comments

Comments

@FrankWasHello
Copy link

FrankWasHello commented Feb 22, 2023

ios page loading file-saver error message, such as question, page white screen can not load, please ask how to solve? The specific code is as follows:

<script>
import domtoimage from 'dom-to-image'
import fileSaver from 'file-saver'

export default {
  methods: {
    shotPic() {
      let node = document.getElementById('my-node');

      domtoimage.toBlob(node, { quality: 1.0}).then(function (blob) {
        fileSaver.saveAs(blob, 'my-node.png');
      });
    }
  },
  components: {
    domtoimage,
    fileSaver
  }
}
</script>

package.json:

"dependencies": {
        "dom-to-image": "^2.6.0",
        "file-saver": "^2.0.5",
        "vue-qr": "^4.0.9"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant