Skip to content

Commit 51886f1

Browse files
committed
Applying 'use_unminimized_js' setting to twilio.js file
1 parent b979f4a commit 51886f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OpenVBX/controllers/iframe.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ function index() {
4646
// look at protocol and serve the appropriate file, https comes from amazon aws
4747
$tjs_baseurl = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
4848
'https://s3.amazonaws.com/static.twilio.com' : 'http://static.twilio.com';
49-
$data['twilio_js'] = $tjs_baseurl.'/libs/twiliojs/1.0/twilio.js';
49+
$twilio_js_file = 'twilio'.($this->config->item('use_unminimized_js') ? '' : '.min').'.js';
50+
$data['twilio_js'] = $tjs_baseurl.'/libs/twiliojs/1.0/'.$twilio_js_file;
5051

5152
if (!empty($this->application_sid))
5253
{

0 commit comments

Comments
 (0)