Skip to content

Commit

Permalink
Don't specify url protocol for ajax call
Browse files Browse the repository at this point in the history
  • Loading branch information
vBm committed Aug 9, 2014
1 parent 35d75b2 commit b9797bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions remaining.episodes.followshows.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// @license The MIT License (MIT)
// @supportURL https://github.com/vBm/snippets/issues
// @include http://followshows.com/user/*
// @version 3
// @date 28/07/2014
// @version 4
// @date 10/08/2014
// @grant none
// ==/UserScript==

Expand All @@ -26,7 +26,7 @@ $('#stats').append(

if (!$('a.btn-follow-user').attr('user')) {
$.ajax({
url: 'http://followshows.com/home/watchlist',
url: '//' + document.location.hostname + '/home/watchlist',
cache: false,
}).done(function(data) {
var totalEpisodesSum, totalEpisodes = [];
Expand Down

0 comments on commit b9797bc

Please sign in to comment.