We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5d2b98 commit 4fa7c24Copy full SHA for 4fa7c24
1 file changed
background.js
@@ -47,7 +47,7 @@ function getJsonResource(tabID) {
47
xhr.open('GET', jsonResourceURL, true);
48
xhr.onreadystatechange = function() {
49
if (xhr.readyState !== 4) return; //quickly return if not complete request
50
- var xpbHeader = xhr.getResponseHeader('X-Powered-By');
+ var xpbHeader = xhr.getResponseHeader('X-Powered-By') || 'unknown';
51
if (!xpbHeader.match(/Solidus/i)) { //quickly return if not solidus
52
notifyDevtools('error', 'No Solidus header detected.');
53
notifyDevtools('status', '<b>not</b> running Solidus 0.1.7 or greater');
@@ -67,6 +67,8 @@ function getJsonResource(tabID) {
67
} catch (e) {
68
notifyDevtools('error', e);
69
}
70
+ } else {
71
+ notifyDevtools('status', 'what' + xhr.status);
72
73
};
74
xhr.send();
0 commit comments