Skip to content

Commit

Permalink
Fixing bug in error-check in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
eklem committed May 20, 2019
1 parent d35e247 commit c6d223b
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 34 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./mini-default.min.css">
<link rel="stylesheet" href="./mini-additions.css">
<script src="../dist/search-index.1.0.5.js"></script>
<script src="../dist/search-index.1.0.6.js"></script>
<title>search-index browser example</title>
</head>

Expand Down
2 changes: 1 addition & 1 deletion demo/search-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ const search = function (q) {
results.forEach(function(result) {
console.log(result);
populateResultsDiv(result)
})
})
.catch(function (err) {
console.log('Error while searching:')
console.log(err)
})
})
}

// Workaround for a possible bug when ID is generated
Expand Down
22 changes: 22 additions & 0 deletions dist/search-index.1.0.6.js

Large diffs are not rendered by default.

43 changes: 12 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "search-index",
"version": "1.0.5",
"version": "1.0.6",
"description": "A network resilient, persistent full-text search library for the browser and Node.js",
"main": "dist/search-index.cjs.js",
"module": "dist/search-index.esm.js",
Expand Down

2 comments on commit c6d223b

@eklem
Copy link
Collaborator Author

@eklem eklem commented on c6d223b May 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error handling at least

@fergiemcdowall
Copy link
Owner

@fergiemcdowall fergiemcdowall commented on c6d223b May 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.