Skip to content

Commit a3d99ce

Browse files
committed
Bugster 3 API
1 parent 42f9df9 commit a3d99ce

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

mkdocs_bs5/assets/js/main-v2.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,9 @@ function Bugster() {
439439

440440
isRequestInProgress = true;
441441
const xhr = new XMLHttpRequest();
442-
xhr.open("POST", "https://bugster2.elmah.io/api/BugsterFunction?code=BjsS-o0CJlpZBunhCFSZ_OqWhlEi9sG7G1cyRlyCOYi3AzFuvoyPPA%3D%3D", true);
443-
xhr.setRequestHeader("Content-Type", "text/plain");
442+
xhr.open("POST", "https://bugster3.elmah.io/api/docs/ask", true);
443+
xhr.setRequestHeader("Content-Type", "application/json");
444+
xhr.setRequestHeader("Accept", "text/plain");
444445

445446
xhr.onprogress = function(progressEvent) {
446447
const { target } = progressEvent;
@@ -476,7 +477,11 @@ function Bugster() {
476477
}
477478
};
478479

479-
xhr.send(question.value);
480+
const payload = JSON.stringify({
481+
question: question.value,
482+
sessionId: "local"
483+
});
484+
xhr.send(payload);
480485
}
481486

482487
// Ask another question

0 commit comments

Comments
 (0)