Skip to content

Commit

Permalink
Google Custom Search - Fix missing colon
Browse files Browse the repository at this point in the history
This fixes an issue that prevents GCS from loading properly (or at least without the user explicitly bypassing a warning in their browser) on https pages.
  • Loading branch information
ojw28 authored Jan 17, 2019
1 parent 3d2db68 commit 658bbd3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ window.Lazyload.js(SOURCES.jquery, function() {
};
var cx = '{{ site.search.google.custom_search_engine_id }}'; // Insert your own Custom Search Engine ID here
var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
gcse.src = (document.location.protocol == 'https' ? 'https:' : 'http:') +
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
});
});

0 comments on commit 658bbd3

Please sign in to comment.