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

11.1.0 breaks error in callback #438

Closed
@nycoliver

Description

@nycoliver

Making requests when the daemon is not running throws an XHR error, as expected. However in the 11.1.0 the callback is never called. For example:

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://unpkg.com/ipfs-api@11.1.0/dist/index.js"></script>
    <script>
      var ipfs = window.IpfsApi();
      ipfs.id(function(err, res) {
        if (err) {
          console.log(err)
        }
      })
    </script>
    <title>IPFS Test</title>
  </head>
  <body>
  </body>
</html>

screen shot 2016-11-22 at 3 16 42 pm

vs 11.0.1:

screen shot 2016-11-22 at 3 17 35 pm

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