Skip to content

Commit bd39246

Browse files
v2.16.2, fix creds in WebRTC sample in production mode
1 parent eb7cd9f commit bd39246

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

samples/webrtc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h3 class="join__title">
6666
</main>
6767

6868
<footer class="footer j-footer invisible">
69-
<p class="j-config footer-config">TEst</p>
69+
<p class="j-config footer-config">Test v2.16.2</p>
7070
<h4>
7171
<a class="fw-link"
7272
href="https://github.com/QuickBlox/quickblox-javascript-sdk/tree/gh-pages/samples/webrtc">

samples/webrtc/js/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@
190190
/* Insert info about creds and endpoints */
191191
let configTxt = 'Uses: ' + JSON.stringify(CONFIG.CREDENTIALS) + ',';
192192
configTxt += ' endpoints: ' + (CONFIG.APP_CONFIG.endpoints ? JSON.stringify(CONFIG.APP_CONFIG.endpoints) : 'test server');
193+
if (CONFIG.ENVIRONMENT=== 'production') {
194+
configTxt = 'You in production mode.';
195+
}
193196
$('.j-config').text(configTxt);
194197

195198
var statesPeerConn = _.invert(QB.webrtc.PeerConnectionState);

0 commit comments

Comments
 (0)