Browse Source

Merge pull request #1710 from RaananW/playground-frame-support-https

Support https
David Catuhe 8 years ago
parent
commit
f1252ae86a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Playground/frame.js

+ 2 - 2
Playground/frame.js

@@ -1,5 +1,5 @@
 (function () {
-    var snippetUrl = "http://babylonjs-api.azurewebsites.net/api/snippet";
+    var snippetUrl = "//babylonjs-api.azurewebsites.net/api/snippet";
     var currentSnippetToken;
     var engine;
     var fpsLabel = document.getElementById("fpsLabel");
@@ -149,7 +149,7 @@
                 xmlHttp.open("GET", snippetUrl + "/" + hash.replace("#", "/"));
                 xmlHttp.send();
 
-                document.getElementById("link").href = "http://www.babylonjs-playground.com/#" + hash;
+                document.getElementById("link").href = "//www.babylonjs-playground.com/#" + hash;
             } catch (e) {
 
             }