Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 80bad1f

Browse files
authoredMay 19, 2017
Update for breaking change
Addressing bug 128
1 parent 377c050 commit 80bad1f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
 

‎js/twitterFetcher.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*********************************************************************
2-
* #### Twitter Post Fetcher v16.0.3 ####
2+
* #### Twitter Post Fetcher v17.0.0 ####
33
* Coded by Jason Mayes 2015. A present to all the developers out there.
44
* www.jasonmayes.com
55
* Please keep this disclaimer with my code if you use it. Thanks. :-)
@@ -158,26 +158,26 @@
158158
script.type = 'text/javascript';
159159
if (config.list !== undefined) {
160160
script.src = 'https://syndication.twitter.com/timeline/list?' +
161-
'callback=twitterFetcher.callback&dnt=false&list_slug=' +
161+
'callback=__twttrf.callback&dnt=false&list_slug=' +
162162
config.list.listSlug + '&screen_name=' + config.list.screenName +
163163
'&suppress_response_codes=true&lang=' + (config.lang || lang) +
164164
'&rnd=' + Math.random();
165165
} else if (config.profile !== undefined) {
166166
script.src = 'https://syndication.twitter.com/timeline/profile?' +
167-
'callback=twitterFetcher.callback&dnt=false' +
167+
'callback=__twttrf.callback&dnt=false' +
168168
'&screen_name=' + config.profile.screenName +
169169
'&suppress_response_codes=true&lang=' + (config.lang || lang) +
170170
'&rnd=' + Math.random();
171171
} else if (config.likes !== undefined) {
172172
script.src = 'https://syndication.twitter.com/timeline/likes?' +
173-
'callback=twitterFetcher.callback&dnt=false' +
173+
'callback=__twttrf.callback&dnt=false' +
174174
'&screen_name=' + config.likes.screenName +
175175
'&suppress_response_codes=true&lang=' + (config.lang || lang) +
176176
'&rnd=' + Math.random();
177177
} else {
178178
script.src = 'https://cdn.syndication.twimg.com/widgets/timelines/' +
179179
config.id + '?&lang=' + (config.lang || lang) +
180-
'&callback=twitterFetcher.callback&' +
180+
'&callback=__twttrf.callback&' +
181181
'suppress_response_codes=true&rnd=' + Math.random();
182182
}
183183
head.appendChild(script);
@@ -408,6 +408,7 @@
408408
};
409409

410410
// It must be a global variable because it will be called by JSONP.
411+
window.__twttrf = twitterFetcher;
411412
window.twitterFetcher = twitterFetcher;
412413
return twitterFetcher;
413414
}));

0 commit comments

Comments
 (0)
Please sign in to comment.