Use petstore for continuserv swagger docs
Matrix.org's swagger browser is behind https, which means it can't read the
swagger from a continuserv on http. Use the petstore instead.
window.onload = function() {
var url = new URL(window.location);
url.pathname += "api-docs.json";
- var newLoc = "http://matrix.org/docs/api/client-server/?url=" + encodeURIComponent(url);
+ var newLoc = "http://petstore.swagger.io/?url=" + encodeURIComponent(url);
document.getElementById("apidocs").href = newLoc;
};
</script>
