From e2cec00454c653e4f7718d5fa151d1fb35cb4874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Tue, 24 Oct 2017 10:20:21 +0800 Subject: [PATCH] Omitting http/s to follow current proto --- .../src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/botanjs/src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js b/botanjs/src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js index f14fcbb..58781ab 100644 --- a/botanjs/src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js +++ b/botanjs/src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js @@ -13,13 +13,15 @@ /** @type {Components.MessageBox} */ var MessageBox = __import( "Components.MessageBox" ); + var getData = __import( "System.Net.getData" ); + var video = function (insertSnippet, snippetWrap, createContext, override) { var temp, i, j , getVimeoThumbnail = function (vtag) { - getData("https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute("data-value"), setThumbnail.bind(vtag), noThumb.bind(vtag)); + getData("//vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute("data-value"), setThumbnail.bind(vtag), noThumb.bind(vtag)); } , noThumb = function () @@ -92,7 +94,7 @@ , new DataKey("type", i) , new IKey("style" , "width: 640px; height: 390px;" - + ( (i[0] == "v") ? "" : ("background: black url(https://img.youtube.com/vi/" + v + "/hqdefault.jpg) no-repeat center center;") ) + + ( (i[0] == "v") ? "" : ("background: black url(//img.youtube.com/vi/" + v + "/hqdefault.jpg) no-repeat center center;") ) ) ] );