commit e2cec00454c653e4f7718d5fa151d1fb35cb4874
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2017-10-24T02:20:21Z |
| subject | Omitting http/s to follow current proto |
commit e2cec00454c653e4f7718d5fa151d1fb35cb4874
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2017-10-24T02:20:21Z
Omitting http/s to follow current proto
---
botanjs/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;") )
)
]
);