blob: bde6442d68ef61809a9262592d61c1479ccc1057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { addPostListener, addPostResponder, JQueryAjaxResponse } from "@/shared/intercept-jquery-ajax";
let loginAreaHTML: string | null = null;
addPostResponder(
"viewLoginAreaAction",
function(_args): JQueryAjaxResponse | undefined | null {
return loginAreaHTML
? {
data: loginAreaHTML
}
: null;
}
);
addPostListener(
"viewLoginAreaAction",
function(_args, result): void {
loginAreaHTML = result.data?.toString() ?? "";
},
false
);
|