Skip to content

Commit 008d558

Browse files
committed
Check for Solidus in string instead of Express
1 parent 4f31f6e commit 008d558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function getJsonResource(tabID) {
4949
var xhr = new XMLHttpRequest();
5050
xhr.open("GET", jsonResourceURL, true);
5151
xhr.onreadystatechange = function() {
52-
if (xhr.readyState === 4 && xhr.getResponseHeader("X-Powered-By") === "Express") {
52+
if (xhr.readyState === 4 && xhr.getResponseHeader("X-Powered-By").substring(0, 7) === "Solidus") {
5353
if(xhr.status === 200){ //Check this separately so we can notify devtools if we don't get a 200 response.
5454
try {
5555
notifyDevtools(JSON.parse(xhr.responseText));

0 commit comments

Comments
 (0)