Support resource and discovery URLs with or without .json extension

This commit is contained in:
zeke
2012-01-24 16:27:40 -08:00
parent 2d25217dd2
commit 54209dd341
4 changed files with 61 additions and 36 deletions

View File

@@ -62,10 +62,10 @@ function clippyCopiedCallback(a) {
}
// Logging function that accounts for browsers that don't have window.console
function log(m) {
if (window.console) console.log(m);
function log() {
if (window.console) console.log.apply(console,arguments);
}
var Docs = {
shebang: function() {