Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Added trailing slash to IG requests. See #18
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanahuja committed Apr 6, 2020
1 parent 3bb882d commit 75bb54d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/InstagramFeed.min.js

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

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* InstagramFeed
*
* @version 1.3.5
* @version 1.3.6
*
* @author Javier Sanahuja Liebana <bannss1@gmail.com>
* @contributor csanahuja <csanahuja@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@jsanahuja/instagramfeed",
"description": "Instagram Feed without access token. Not using the Instagram API",
"homepage": "https://github.com/jsanahuja/InstagramFeed",
"version": "1.3.5",
"version": "1.3.6",
"keywords": [
"instagram",
"feed",
Expand Down
4 changes: 2 additions & 2 deletions src/InstagramFeed.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* InstagramFeed
*
* @version 1.3.5
* @version 1.3.6
*
* @author Javier Sanahuja Liebana <bannss1@gmail.com>
* @contributor csanahuja <csanahuja@gmail.com>
Expand Down Expand Up @@ -78,7 +78,7 @@
}

this.get = function(callback) {
var url = this.is_tag ? this.options.host + "explore/tags/" + this.options.tag : this.options.host + this.options.username,
var url = this.is_tag ? this.options.host + "explore/tags/" + this.options.tag + "/" : this.options.host + this.options.username + "/",
xhr = new XMLHttpRequest();

var _this = this;
Expand Down
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* InstagramFeed
*
* @version 1.3.5
* @version 1.3.6
*
* @author Javier Sanahuja Liebana <bannss1@gmail.com>
* @contributor csanahuja <csanahuja@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion test/requirejs.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* InstagramFeed
*
* @version 1.3.5
* @version 1.3.6
*
* @author Javier Sanahuja Liebana <bannss1@gmail.com>
* @contributor csanahuja <csanahuja@gmail.com>
Expand Down

0 comments on commit 75bb54d

Please sign in to comment.