Skip to content

Commit

Permalink
Fixed IE compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
blaz-blazer committed Jan 17, 2020
1 parent 15535c7 commit 275fbe0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions _dev/public/js/modules/CookieCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ class CookieCheck {
}

let postsArray = this.existingCookie.split(',');

if(!postsArray.includes(this.postID)) {
//console.log(jQuery.inArray(this.postID, postsArray));
// if(!postsArray.includes(this.postID)) { // requires polyfill
if(jQuery.inArray(this.postID, postsArray) === -1) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion public/js/rate-my-post.js

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

Loading

0 comments on commit 275fbe0

Please sign in to comment.