Skip to content

Commit df91b42

Browse files
committed
changes made for the issue 142
1 parent acd46f0 commit df91b42

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

extension/writing-process/src/background.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ var RAW_DEBUG = false;
99
/* This variable must be manually updated to specify the server that
1010
* the data will be sent to.
1111
*/
12-
var WEBSOCKET_SERVER_URL = "wss://learning-observer.org/wsapi/in/";
12+
//var WEBSOCKET_SERVER_URL = "wss://learning-observer.org/wsapi/in/";
13+
import { CONFIG } from './config_sample.js'; // <- new
14+
const WEBSOCKET_SERVER_URL = CONFIG.WEBSOCKET_SERVER_URL;
1315

1416
import { googledocs_id_from_url } from './writing_common';
1517

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const CONFIG = {
2+
ENV_NAME: "prod",
3+
WEBSOCKET_SERVER_URL: "wss://learning-observer.org/wsapi/in/",
4+
HTTP_API_BASE_URL: "https://learning-observer.org",
5+
LOG_LEVEL: "info",
6+
REQUEST_TIMEOUT_MS: 15000,
7+
HEARTBEAT_MS: 30000,
8+
RECONNECT: { initialMs: 1000, maxMs: 15000, factor: 1.7 },
9+
FEATURE_FLAGS: { verboseErrors: false },
10+
};

0 commit comments

Comments
 (0)