Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiliavir committed Jan 30, 2023
1 parent 114dba0 commit 1e5176e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/ts/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Register {
};

public static tryReplaceImage($images: JQuery): void {
let htmlElements = this.shuffle($images);
for (let image of htmlElements) {
const htmlElements = this.shuffle($images);
for (const image of htmlElements) {
if (Register.isElementInViewport(image)) {
const $image = $(image);
const remainingRegImageUrls = Register.register[$image.attr("title")]
Expand All @@ -46,7 +46,7 @@ class Register {
}

return array;
};
}

private static endsWith(str: string, suffix: string): boolean {
return str.indexOf(suffix, str.length - suffix.length) !== -1;
Expand Down

0 comments on commit 1e5176e

Please sign in to comment.