39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
// This is a sample config file. Copy to config.js if you need to fiddle with the
|
|
// configuration of the client.
|
|
|
|
window.TrivabbleConf = {
|
|
// The amount of time to wait after a connection failure
|
|
POLLING_DELAY: 2000,
|
|
|
|
// Whether WebSockets should be used, if possible
|
|
ENABLE_WEBSOCKETS: true,
|
|
|
|
// Whether Server Sent Events should be used, if available
|
|
ENABLE_EVENT_SOURCE: true,
|
|
|
|
// Max consecutive tries before blacklisting WebSockets for the current session
|
|
MAX_WEBSOCKET_ERRORS: 1,
|
|
|
|
// To tweak only if your webserver is shared with other conflicting resources at / (e.g. Yunohost integration)
|
|
APP_PATH: "",
|
|
|
|
// The color of the flash light when double clicking on a cell
|
|
FLASH_LIGHT_COLOR: "#EE6633",
|
|
|
|
// The list of durations of the flash light available in the settings box
|
|
FLASH_LIGHT_DURATIONS: [800, 1600, 3200],
|
|
|
|
// The defaut flash light duration. If not set, the value at the middle of the previous array is used.
|
|
FLASH_LIGHT_DURATION: 1600,
|
|
|
|
// The list of durations used to detect a double tap available in the settings box
|
|
DOUBLE_TAP_DURATIONS: [650, 1100, 1800, 3000, 5000],
|
|
|
|
// The defaut double tap duration. If not set, the value at the middle of the previous array is used.
|
|
DOUBLE_TAP_DURATION: 1800,
|
|
|
|
|
|
// I don't like trailing commas, here is a nice message for you reading this file :-)
|
|
HAVE_FUN: true
|
|
};
|