From 99890b82e729083584a44e56d5e45587cd3fab60 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 30 Oct 2013 13:13:42 +1100 Subject: [PATCH] go.tools/godoc/static: use preferred JS for Google+ buttons R=bradfitz, dsymonds CC=golang-dev https://golang.org/cl/19070044 --- godoc/static/godocs.js | 2 +- godoc/static/static.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js index 8003a1fe8c..387db110f1 100644 --- a/godoc/static/godocs.js +++ b/godoc/static/godocs.js @@ -236,7 +236,7 @@ function addPlusButtons() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; - po.src = 'https://apis.google.com/js/plusone.js'; + po.src = 'https://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); } diff --git a/godoc/static/static.go b/godoc/static/static.go index b6852dd23f..69bc9b1d12 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -481,7 +481,7 @@ function addPlusButtons() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; - po.src = 'https://apis.google.com/js/plusone.js'; + po.src = 'https://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); }