Skip to content

Uncaught ReferenceError: Telegram is not defined #47

Description

@jiexaspb

If for some reason the script

<script src="https://telegram.org/js/telegram-web-app.js?56"></script>

failed to load (for example, there was a network problem), then we get the error

vue-tg.js?v=f815cbef:432 Uncaught ReferenceError: Telegram is not defined
at vue-tg.js?v=f815cbef:432:5

Maybe we should add our own telegram-web-app.js loader to the package, which will try to do this several times if it doesn't work the first time. And then catch the onload method, based on which we can access the Telegram object?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions