From cc4f38bbab1fbfde031ee0d0da1f9d719d7060b8 Mon Sep 17 00:00:00 2001 From: Davi de Castro Reis Date: Mon, 29 Aug 2016 15:41:18 -0300 Subject: [PATCH] Enable https always and work around https://bugs.webkit.org/show_bug.cgi?id=145692. --- jquery.dfp.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jquery.dfp.js b/jquery.dfp.js index be68354..38b21c1 100644 --- a/jquery.dfp.js +++ b/jquery.dfp.js @@ -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') { @@ -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);