Skip to content

Commit

Permalink
Fix warning to include WUCON
Browse files Browse the repository at this point in the history
  • Loading branch information
semenko committed Jun 27, 2014
1 parent ce808ac commit 306a84e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ chrome.browserAction.onClicked.addListener(function (tab) {
// We check for HTTP/HTTPS only (no chrome://), and that "proxy.wustl.edu" isn't at the end of the
// string, otherwise we're probably already at [becker|lib]proxy.wustl.edu.
if (parsedURL.protocol == 'http' || parsedURL.protocol == 'https') {
if (parsedURL.host.substring(parsedURL.host.length - 15) != 'proxy.wustl.edu') {
var host_ending = parsedURL.host.substring(parsedURL.host.length - 15);
if (host_ending != 'proxy.wustl.edu' && host_ending != 'wucon.wustl.edu') {
if (hint_urls.hasOwnProperty(parsedURL.host)) {
// Warn users if they're doing something unnecessary.
// In this case, do NOT redirect these URLs.
Expand Down

0 comments on commit 306a84e

Please sign in to comment.