Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit c45eb2f

Browse files
author
RayhanADev
committed
Auto Slugify Repl Title in Repl Class and Bug Fixes in Repl Class
1 parent 5e78853 commit c45eb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classes/Repl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ async function _getReplId(username, slug) {
77
method: 'GET',
88
headers
99
})
10-
.then(res => res.json());
10+
.then(res => res.text());
1111

1212
return info.id;
1313
}
1414

1515
class Repl {
1616
constructor(username, slug) {
1717
this.username = username;
18-
this.slug = slug;
18+
this.slug = slug.replaceAll(' ', '-');
1919
}
2020

2121
async replGraphQLData() {

0 commit comments

Comments
 (0)