diff --git a/mastodon.widget.css b/mastodon.widget.css index 0b5e8a7..0266811 100644 --- a/mastodon.widget.css +++ b/mastodon.widget.css @@ -71,6 +71,13 @@ border-radius: 5px; box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); } + +.mt-error { + color: darkred; + background: lightpink; + margin: 5px; + padding: 10px; +} /* <<< */ /* light theme >>> */ diff --git a/mastodon.widget.js b/mastodon.widget.js index 8c5fd5e..02f4228 100644 --- a/mastodon.widget.js +++ b/mastodon.widget.js @@ -73,6 +73,13 @@ MastodonApi.prototype.listStatuses = function() { // fix content link target $('a', this.widget).attr('target', '_blank'); } + ,error: function(d_) { + //console.log( d_ ); + if(d_.responseJSON) { + $('.mt-header', mapi.widget).html('ERROR'); + $('.mt-body', mapi.widget).html( '