Compare commits
2 commits
d220f86cb8
...
94070d8f75
Author | SHA1 | Date | |
---|---|---|---|
94070d8f75 | |||
c52308e623 |
1 changed files with 8 additions and 5 deletions
|
@ -32,11 +32,8 @@ export default function Study() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
_logger.current = new Logger({
|
_logger.current = new Logger({
|
||||||
//inputs: ["cursor", "wheel", "keyboard", "touch"],
|
inputs: ["keyboard", "wheel", "cursor", "custom"],
|
||||||
inputs: ["keyboard"],
|
apiUrl: "https://behavior.marcocamenzind.ch",
|
||||||
// apiUrl: "https://behavior.marcocamenzind.ch",
|
|
||||||
apiUrl: "http://localhost:5000",
|
|
||||||
logToConsole: true,
|
|
||||||
});
|
});
|
||||||
_logger.current.init();
|
_logger.current.init();
|
||||||
authFetch("/api/username", {
|
authFetch("/api/username", {
|
||||||
|
@ -112,6 +109,12 @@ export default function Study() {
|
||||||
receiveRandomPassword();
|
receiveRandomPassword();
|
||||||
setState(STATES.NORMAL);
|
setState(STATES.NORMAL);
|
||||||
handleLoggerOn();
|
handleLoggerOn();
|
||||||
|
// map username and session with the logs
|
||||||
|
_logger.current.logCustomEvent(
|
||||||
|
{
|
||||||
|
name: serverUsername,
|
||||||
|
},
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const resetInputValues = () => {
|
const resetInputValues = () => {
|
||||||
|
|
Loading…
Reference in a new issue