Fix wiki's SSL issue

fix wiki view

Fix to the same issue that was effecting the aside wiki
This commit is contained in:
benmcmahon100
2016-03-17 13:48:36 +00:00
parent f88a80c6cb
commit a65742ad45
2 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ $(document).ready(function() {
if (!main.isWikiAsideLoad) { if (!main.isWikiAsideLoad) {
var lang = window.location.toString().match(/\/\w{2}\//); var lang = window.location.toString().match(/\/\w{2}\//);
lang = (lang) ? lang[0] : '/en/'; lang = (lang) ? lang[0] : '/en/';
var wikiURL = 'http://freecodecamp.github.io/wiki' + lang; var wikiURL = '//freecodecamp.github.io/wiki' + lang;
var wikiAside = $('<iframe>'); var wikiAside = $('<iframe>');
wikiAside.attr({ wikiAside.attr({
src: wikiURL, src: wikiURL,

View File

@ -4,4 +4,4 @@ block content
script. script.
var lang = window.location.toString().match(/\/\w{2}\//); var lang = window.location.toString().match(/\/\w{2}\//);
lang = (lang) ? lang[0] : '/en/'; lang = (lang) ? lang[0] : '/en/';
$('#wikiFrame').attr('src','http://freecodecamp.github.io/wiki' + lang); $('#wikiFrame').attr('src','//freecodecamp.github.io/wiki' + lang);