Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
heintayzar-hm committed Nov 23, 2022
1 parent 7628bf5 commit 1484c41
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/modules/show.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ export default class Show extends ShowApi {
return comments.length;
}
/**
* to run the javascript code after the
* @param Array
* @returns string
* to run the javascript code after the html from the class is finished
* @param ()
*/

js = () => {
Expand All @@ -154,6 +153,11 @@ export default class Show extends ShowApi {
this.commentsLength();
}

/**
* for main.innerHtml data
* @param ()
* @return (main.innerHtml: string)
*/
html = async ({ hash }) => {
const res = await this.show(Number(hash)).then((data) => data);
const {
Expand Down

0 comments on commit 1484c41

Please sign in to comment.