Skip to content

Commit a97b3df

Browse files
authored
Merge pull request #249 from Glorfindel83/master
FDSC v1.20.4 - bugfix display existing feedback
2 parents d3e2f10 + 5cbf362 commit a97b3df

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

fdsc/fdsc.meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @contributor J F
99
// @contributor Glorfindel
1010
// @attribution Brock Adams (https://github.com/BrockA)
11-
// @version 1.20.3
11+
// @version 1.20.4
1212
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fdsc/fdsc.meta.js
1313
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fdsc/fdsc.user.js
1414
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues

fdsc/fdsc.user.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @contributor J F
99
// @contributor Glorfindel
1010
// @attribution Brock Adams (https://github.com/BrockA)
11-
// @version 1.20.3
11+
// @version 1.20.4
1212
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fdsc/fdsc.meta.js
1313
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fdsc/fdsc.user.js
1414
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
@@ -348,13 +348,12 @@
348348
// Retrieve feedback
349349
$.get("https://metasmoke.erwaysoftware.com/api/v2.0/feedbacks/post/" + data_[0].id +
350350
"?key=" + fdsc.metasmokeKey, function (data) {
351-
console.log(data);
352351
// Determine # of feedbacks for each type
353352
var tps = 0;
354353
var fps = 0;
355354
var naa = 0;
356355
for (var i = 0; i < data.items.length; i++) {
357-
switch (data.items[0].feedback_type.charAt(0)) {
356+
switch (data.items[i].feedback_type.charAt(0)) {
358357
case "t":
359358
tps++;
360359
break;

0 commit comments

Comments
 (0)