Fix jitsi lib load in sub dir

pull/5038/head
Rodrigo Nascimento 9 years ago
parent 1a02c146af
commit cf4b078424
No known key found for this signature in database
GPG Key ID: 2C85B3AFE75D23F9
  1. 3
      packages/rocketchat-livechat/app/client/lib/LivechatVideoCall.js
  2. 3
      packages/rocketchat-videobridge/client/tabBar.js

@ -6,7 +6,8 @@ LivechatVideoCall = new (class LivechatVideoCall {
this.calling = new ReactiveVar(false);
if (typeof JitsiMeetExternalAPI === 'undefined') {
$.getScript('/packages/rocketchat_videobridge/client/public/external_api.js');
const prefix = __meteor_runtime_config__.ROOT_URL_PATH_PREFIX || '';
$.getScript(`${prefix}/packages/rocketchat_videobridge/client/public/external_api.js`);
}
}

@ -28,7 +28,8 @@ Meteor.startup(function() {
if (RocketChat.settings.get('Jitsi_Enabled')) {
// Load from the jitsi meet instance.
if (typeof JitsiMeetExternalAPI === 'undefined') {
$.getScript('/packages/rocketchat_videobridge/client/public/external_api.js');
const prefix = __meteor_runtime_config__.ROOT_URL_PATH_PREFIX || '';
$.getScript(`${prefix}/packages/rocketchat_videobridge/client/public/external_api.js`);
}
// Compare current time to call started timeout. If its past then call is probably over.

Loading…
Cancel
Save