penguin/AstroJS

Javascript framework for my blog

commit a83b5c0680d49d1e281023e601959798df751522

author斟酌 鵬兄 <tgckpg@gmail.com>
date2017-10-24T02:13:49Z
subjectFixed vimeo https link
commit a83b5c0680d49d1e281023e601959798df751522
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2017-10-24T02:13:49Z

    Fixed vimeo https link
---
 botanjs/src/Astro/Blog/Components/Video.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/botanjs/src/Astro/Blog/Components/Video.js b/botanjs/src/Astro/Blog/Components/Video.js
index 4d6196c..93b3e1a 100644
--- a/botanjs/src/Astro/Blog/Components/Video.js
+++ b/botanjs/src/Astro/Blog/Components/Video.js
@@ -30,12 +30,12 @@
 				type = type.split( "_" )[0];
 
 				// showVimeoPlayer / showYoutubePlayer
-				var cfunc = function( e ) { createPlayer( this.vid, "https://www.youtube.com/embed/" ); };
+				var cfunc = function( e ) { createPlayer( this.vid, "//www.youtube.com/embed/" ); };
 
 				if( type[0] == "v" )
 				{
 					getVimeoThumbnail( vid );
-					cfunc = function( e ) { createPlayer( this.vid, "http://player.vimeo.com/video/" ); };
+					cfunc = function( e ) { createPlayer( this.vid, "//player.vimeo.com/video/" ); };
 				}
 
 				vid.onclick = cfunc.bind({ vid: vid });
@@ -83,7 +83,7 @@
 	var getVimeoThumbnail = function ( vtag )
 	{
 		getData(
-			"https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute( "value" )
+			"//vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute( "value" )
 			, parseObj.bind( vtag )
 			, noThumb.bind( vtag )
 		);