Skip to content

Commit ceaac58

Browse files
update live demo webRTC sample: fix config variables for regim development and add HashRouter
1 parent 76eef41 commit ceaac58

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

samples/webrtc/config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
;(function(window) {
22
'use strict';
33

4+
const ENVIRONMENT = 'development'; // 'development' | 'production'
5+
46
const MESSAGES = {
57
'login': 'Login as any user on this computer and another user on another computer.',
68
'create_session': 'Creating a session...',
@@ -85,6 +87,7 @@
8587
window.CONFIG = {
8688
'CREDENTIALS': creds,
8789
'APP_CONFIG': config,
88-
'MESSAGES': MESSAGES
90+
'MESSAGES': MESSAGES,
91+
'ENVIRONMENT': ENVIRONMENT,
8992
};
9093
}(window));

samples/webrtc/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@
13411341
var params = {
13421342
notification_type: 'push',
13431343
user: {ids: opponentsIDsNumbers},
1344-
environment: 'development', // environment, can be 'production' as well.
1344+
environment: CONFIG.ENVIRONMENT, // environment, can be 'production' as well.
13451345
message: QB.pushnotifications.base64Encode(
13461346
JSON.stringify(pushPayload)
13471347
)

0 commit comments

Comments
 (0)