Skip to content

Commit

Permalink
.includes(), not .contains(). Grrr...
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNygaard committed Apr 10, 2019
1 parent 2ce1191 commit 54af0d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Stigs_Flickr_Fixr.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,8 @@ function wsGetPhotoInfo() { // Call Flickr REST API to get photo info
console.log('There has been a problem with your fetch operation: ', error.message);
log('There has been a problem with your fetch operation: ' + error);
var elem = document.querySelector('.date-info');
if (elem && navigator.userAgent.contains('Chrome/') && (typeof GM_info === 'undefined') && (typeof GM === 'undefined')) {
elem.innerHTML = 'Sorry, this feature currently doesn\'t work in Flickr Fixr extension on Chrome version 73+ - I plan to work on a fix very soon.'; // https://www.chromium.org/Home/chromium-security/extension-content-script-fetches - Cross-Origin Read Blocking (CORB) blocked cross-origin response
if (elem && navigator.userAgent.includes('Chrome/') && (typeof GM_info === 'undefined') && (typeof GM === 'undefined')) {
elem.innerHTML = 'Sorry, this feature currently doesn\'t work in Flickr Fixr extension on Chrome version 73+ - I plan to work on a fix very soon...'; // https://www.chromium.org/Home/chromium-security/extension-content-script-fetches - Cross-Origin Read Blocking (CORB) blocked cross-origin response
}
});
}
Expand Down

0 comments on commit 54af0d9

Please sign in to comment.