We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0670ca2 + 15cd1ae commit f83c414Copy full SHA for f83c414
src/tabletop.js
@@ -309,7 +309,7 @@
309
// Only pull in desired sheets to reduce loading
310
if( this.isWanted(data.feed.entry[i].content.$t) ) {
311
var linkIdx = data.feed.entry[i].link.length-1;
312
- var sheet_id = data.feed.entry[i].link[linkIdx].href.substr( data.feed.entry[i].link[linkIdx].href.length - 3, 3);
+ var sheet_id = data.feed.entry[i].link[linkIdx].href.split('/').pop();
313
var json_path = "/feeds/list/" + this.key + "/" + sheet_id + "/public/values?alt="
314
if (inNodeJS || supportsCORS) {
315
json_path += 'json';
0 commit comments