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

Uncaught TypeError: Cannot read property 'on' of undefined #179

Closed
feross opened this issue Nov 10, 2014 · 1 comment
Closed

Uncaught TypeError: Cannot read property 'on' of undefined #179

feross opened this issue Nov 10, 2014 · 1 comment

Comments

@feross
Copy link
Member

@feross feross commented Nov 10, 2014

I'm getting an error while using the latest webtorrent build at https://rawgit.com/feross/webtorrent/master/webtorrent.min.js

Complete code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="https://rawgit.com/feross/webtorrent/master/webtorrent.min.js"></script>
</head>
<body>
<script type="text/javascript">

            var client = new WebTorrent();

            client.add({
                    infoHash: "61883b8e1fef9272d9e24e0a2a06955dafa5ba0e",
                    announce: [ "wss://tracker.webtorrent.io" ]
                }, function (torrent) {

                console.log(torrent);

            });

        </script>
</body>
</html>

Putting this here so I don't forget about it.

@feross

This comment has been minimized.

Copy link
Member Author

@feross feross commented Nov 19, 2014

Fixed in 0.13.1.

@feross feross closed this Nov 19, 2014
@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.