Skip to content

Commit

Permalink
Merge pull request johnculviner#86 from Avalaxy/master
Browse files Browse the repository at this point in the history
Made cookie filename comparison case insensitive.
  • Loading branch information
johnculviner committed Mar 13, 2015
2 parents c1f0c46 + 736990d commit b9ad024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Scripts/jquery.fileDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ $.extend({

function checkFileDownloadComplete() {
//has the cookie been written due to a file download occuring?
if (document.cookie.indexOf(settings.cookieName + "=" + settings.cookieValue) != -1) {
var lowerCaseCookie = settings.cookieName.toLowerCase() + "=" + settings.cookieValue.toLowerCase();

if (document.cookie.toLowerCase().indexOf(lowerCaseCookie) > -1) {

//execute specified callback
internalCallbacks.onSuccess(fileUrl);
Expand Down

0 comments on commit b9ad024

Please sign in to comment.