You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code path for loading a demo from the gallery was still being run
after we loaded from the URL, clobbering the URL data. The gist
codepath only worked because the jsonp request made it so the gallery
demo load was then overwritten by the correct data.
Now we only parse and load from the demo if we actually need it.
varhtml=defined(htmlFile) ? htmlFile.content : defaultHtml;// Use the default html for old gists
755
743
applyLoadedDemo(code,html);
756
744
}).otherwise(function(error){
757
-
appendConsole('consoleError','Unable to GET from GitHub API. This could be due to too many request, try again in an hour or copy and paste the code from the gist: https://gist.github.com/'+queryObject.gist,true);
745
+
appendConsole('consoleError','Unable to GET from GitHub API. This could be due to too many request, try again in an hour or copy and paste the code from the gist: https://gist.github.com/'+queryObject.gist,true);
758
746
console.log(error);
759
-
});
747
+
});
760
748
}elseif(defined(queryObject.code)){
761
749
//The code query parameter is a Base64 encoded JSON string with `code` and `html` properties.
0 commit comments