Skip to content

Commit

Permalink
v2.16.2, fix creds in WebRTC sample in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-K-Koltunov committed Mar 28, 2024
1 parent eb7cd9f commit bd39246
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/webrtc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h3 class="join__title">
</main>

<footer class="footer j-footer invisible">
<p class="j-config footer-config">TEst</p>
<p class="j-config footer-config">Test v2.16.2</p>
<h4>
<a class="fw-link"
href="https://github.com/QuickBlox/quickblox-javascript-sdk/tree/gh-pages/samples/webrtc">
Expand Down
3 changes: 3 additions & 0 deletions samples/webrtc/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@
/* Insert info about creds and endpoints */
let configTxt = 'Uses: ' + JSON.stringify(CONFIG.CREDENTIALS) + ',';
configTxt += ' endpoints: ' + (CONFIG.APP_CONFIG.endpoints ? JSON.stringify(CONFIG.APP_CONFIG.endpoints) : 'test server');
if (CONFIG.ENVIRONMENT=== 'production') {
configTxt = 'You in production mode.';
}
$('.j-config').text(configTxt);

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

0 comments on commit bd39246

Please sign in to comment.