Skip to content

Commit ef2c94e

Browse files
committed
reset playground
1 parent c46b162 commit ef2c94e

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
import { RecommendationsQuery } from './RecommendationsQuery';
22

3-
export type RecommendedForYouQuery = Omit<RecommendationsQuery, 'model' | 'objectID'> & {
4-
/**
5-
* A `userToken` to personalise recommendations.
6-
*/
7-
readonly userToken: string;
8-
};
3+
export type RecommendedForYouQuery = Omit<RecommendationsQuery, 'model' | 'objectID'>;

playground/browser/index.html

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<!-- TODO reset before opening PR -->
4+
<script src="/playground/browser/algoliasearch.umd.js"></script>
55
<script src="/playground/browser/recommend.umd.js"></script>
6-
7-
<script>
8-
const recommend = window['@algolia/recommend'];
9-
const client = recommend('betaJ7GCETGTCW', '4cf66002c945b397d9041ca70089d3cd');
10-
11-
client
12-
.getRecommendedForYou([
13-
{
14-
indexName: 'airbnb',
15-
userToken: 'user_token_1',
16-
},
17-
])
18-
.then(({ results }) => {
19-
console.log(results[0]);
20-
})
21-
.catch(err => {
22-
console.error(err);
23-
});
24-
</script>
256
</head>
267
<body></body>
278
</html>

0 commit comments

Comments
 (0)