Update
This commit is contained in:
parent
0952b8895f
commit
dcc79e864c
@ -8,7 +8,8 @@ export class ApiDocs {
|
|||||||
this.copy = new CodeCopy();
|
this.copy = new CodeCopy();
|
||||||
const mounts = document.querySelectorAll("[data-api-tester]");
|
const mounts = document.querySelectorAll("[data-api-tester]");
|
||||||
if (!mounts.length) return;
|
if (!mounts.length) return;
|
||||||
const ctx = window.DEVPLACE_DOCS || { base: location.origin, loggedIn: false, username: "", apiKey: "", isAdmin: false };
|
const ctx = window.DEVPLACE_DOCS || { loggedIn: false, username: "", apiKey: "", isAdmin: false };
|
||||||
|
ctx.base = location.origin;
|
||||||
this.testers = [...mounts].map((mount) => new ApiTester(mount, ctx));
|
this.testers = [...mounts].map((mount) => new ApiTester(mount, ctx));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user