Permalink
Browse files

fixed case of zero contentProxyDomains

  • Loading branch information...
1 parent 0a423af commit d392d5a1289677b884ca49e8942169dc5846a091 @arty-name committed Feb 11, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 build/open-google-reader.js
  2. +1 −1 build/open-google-reader.user.js
  3. +1 −1 src/30ui.js
@@ -863,7 +863,7 @@ function ui(settings, css) {
}
function requestProxiedContent(item, article){
- if (settings.mobile || item.loaded) return;
+ if (!settings.contentProxyDomains.length || settings.mobile || item.loaded) return;
if (!(new RegExp(settings.contentProxyDomains.join('|'))).test(item.feed.url)) return;
var iframe = DOM('iframe', {src: item.url, style: 'display: none'});
@@ -863,7 +863,7 @@ function ui(settings, css) {
}
function requestProxiedContent(item, article){
- if (settings.mobile || item.loaded) return;
+ if (!settings.contentProxyDomains.length || settings.mobile || item.loaded) return;
if (!(new RegExp(settings.contentProxyDomains.join('|'))).test(item.feed.url)) return;
var iframe = DOM('iframe', {src: item.url, style: 'display: none'});
View
@@ -479,7 +479,7 @@ function ui(settings, css) {
}
function requestProxiedContent(item, article){
- if (settings.mobile || item.loaded) return;
+ if (!settings.contentProxyDomains.length || settings.mobile || item.loaded) return;
if (!(new RegExp(settings.contentProxyDomains.join('|'))).test(item.feed.url)) return;
var iframe = DOM('iframe', {src: item.url, style: 'display: none'});

0 comments on commit d392d5a

Please sign in to comment.