Skip to content

Commit

Permalink
Enable https always and work around https://bugs.webkit.org/show_bug.…
Browse files Browse the repository at this point in the history
  • Loading branch information
bonitao committed Aug 29, 2016
1 parent 505952b commit cc4f38b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jquery.dfp.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
// Check if google adLoader can be loaded, this will work with AdBlock
if(dfpScript.shouldCheckForAdBlockers() && !googletag._adBlocked_) {
if (googletag.getVersion) {
var script = '//partner.googleadservices.com/gpt/pubads_impl_' +
var script = 'https://partner.googleadservices.com/gpt/pubads_impl_' +
googletag.getVersion() + '.js';
$.getScript(script).always(function (r) {
if (r && r.statusText === 'error') {
Expand Down Expand Up @@ -543,9 +543,7 @@
loaded.resolve();
};

var useSSL = 'https:' === document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt.js';
gads.src = 'https://www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);

Expand Down

0 comments on commit cc4f38b

Please sign in to comment.