Skip to content

Commit

Permalink
feat: update google custom search scripts, close kitian616#174
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed May 7, 2019
1 parent 01185b5 commit fc48554
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ 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:') +
'//www.google.com/cse/cse.js?cx=' + cx;
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
});

0 comments on commit fc48554

Please sign in to comment.