[READ-ONLY] Mirror of https://github.com/probablykasper/LaRSS. RSS Generator for iTunes larss.kasper.space
rss website
0

Configure Feed

Select the types of activity you want to include in your feed.

If the gist isn't found by ID, we'll try to search for it first instead of instantly creating a new gist

KH (Nov 7, 2017, 9:33 PM +0100) 4bdebb30 61963a13

+15 -7
+15 -7
docs/index.js
··· 113 113 gistFound(content, rssURL); 114 114 if (callback) callback(); 115 115 } else { 116 - createGist(pat, function(id, content, rssURL) { 117 - localStorage.setItem("gistId", id); 118 - gistId = id; 119 - gistFound(content, rssURL); 120 - if (callback) callback(); 121 - }); 122 - if (callback) callback(); 116 + findGistId(pat, function(id) { 117 + if (id) { 118 + findGist(pat, id, function(content, rssURL) { 119 + gistFound(content, rssURL); 120 + if (callback) callback(); 121 + resizeTextareas(); 122 + }); 123 + } else { 124 + createGist(pat, function(id, content, rssURL) { 125 + localStorage.setItem("gistId", id); 126 + gistId = id; 127 + gistFound(content, rssURL); 128 + if (callback) callback(); 129 + }); 130 + } 123 131 } 124 132 }); 125 133 } else {