Skip to content

Commit 7ac21fb

Browse files
committed
fix: fixed small bug
1 parent 77c118b commit 7ac21fb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"authors": [
55
"Jonathan Hornung <[email protected]>"
66
],
7-
"version": "0.3.4",
7+
"version": "0.3.5",
88
"description": "angular factory for youtube rest api connection",
99
"main": "dist/angular-youtube-api-factory.min.js",
1010
"moduleType": [],

dist/angular-youtube-api-factory.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-youtube-api-factory",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"description": "angularjs factory for youtube json rest api requests",
55
"main": "Gruntfile.js",
66
"scripts": {

src/angular-youtube-api-factory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ angular.module("jtt_youtube", [])
8080
maxResults: _params.maxResults || 20,
8181
};
8282

83-
if (_params.searchString) {
84-
youtubeSearchData.object.q = _params.searchString;
83+
if (_params.q) {
84+
youtubeSearchData.object.q = _params.q;
8585
}
8686

8787
youtubeSearchData.url = this.getApiBaseUrl()+"search?";
@@ -95,7 +95,7 @@ angular.module("jtt_youtube", [])
9595
youtubeSearchData.object = {
9696
part: "id,snippet",
9797
type: "video",
98-
q: _params.searchString,
98+
q: _params.q,
9999
order: _params.order || "date",
100100
key: _params.key,
101101
maxResults: _params.maxResults || 20,

0 commit comments

Comments
 (0)