implement room preview

This commit is contained in:
Bruno Windels
2020-12-02 11:06:35 +01:00
parent 1957277463
commit ca74aaf4d1
4 changed files with 62 additions and 8 deletions
+4 -1
View File
@@ -79,7 +79,10 @@ function xhrAsPromise(xhr, method, url) {
});
}
export function xhrRequest(url, options) {
export function xhrRequest(url, options = {}) {
if (!options.method) {
options.method = "GET";
}
let {cache, body, method} = options;
if (!cache) {
url = addCacheBuster(url);