Forgot that reddit wraps it's data with *another* data

sigh.
This commit is contained in:
j0be 2016-09-26 11:09:15 -04:00 committed by GitHub
parent 511cdd8da0
commit 303c01ba5f

View file

@ -40,8 +40,7 @@ pdApp = {
url: 'https://www.reddit.com/r/PowerDeleteSuite/about/stylesheet/.json', url: 'https://www.reddit.com/r/PowerDeleteSuite/about/stylesheet/.json',
context: $('#pd__style') context: $('#pd__style')
}).then(function(data) { }).then(function(data) {
debugger; $(this)[0].innerHTML = data.data.stylesheet;
$(this)[0].innerHTML = data.stylesheet;
}, function() { }, function() {
alert('Error retreiving CSS from /r/PowerDeleteSuite'); alert('Error retreiving CSS from /r/PowerDeleteSuite');
}); });