Skip to content

Commit

Permalink
accept edit link, not just pubhtml link
Browse files Browse the repository at this point in the history
  • Loading branch information
nolastan committed Nov 25, 2015
1 parent 7cbc61f commit f3e8953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Contents/Sketch/script.cocoascript
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var onRun = function(context) {
function loadFromURL(queryURL) {
var data;
if(queryURL.indexOf("google.com") > -1) {
var sheetID=queryURL.substring(queryURL.lastIndexOf("/d/")+3,queryURL.lastIndexOf("/pubhtml"));
var sheetID=queryURL.substring(queryURL.lastIndexOf("/d/")+3,queryURL.lastIndexOf("/"));
for(var i = 1; true; i++) {
queryURL = "https://spreadsheets.google.com/feeds/list/" + sheetID + "/" + i + "/public/values?alt=json";
data = request(queryURL);
Expand Down

0 comments on commit f3e8953

Please sign in to comment.