Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Applying 'use_unminimized_js' setting to twilio.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gipetto committed Sep 16, 2011
1 parent b979f4a commit 51886f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenVBX/controllers/iframe.php
Expand Up @@ -46,7 +46,8 @@ function index() {
// look at protocol and serve the appropriate file, https comes from amazon aws
$tjs_baseurl = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https://s3.amazonaws.com/static.twilio.com' : 'http://static.twilio.com';
$data['twilio_js'] = $tjs_baseurl.'/libs/twiliojs/1.0/twilio.js';
$twilio_js_file = 'twilio'.($this->config->item('use_unminimized_js') ? '' : '.min').'.js';
$data['twilio_js'] = $tjs_baseurl.'/libs/twiliojs/1.0/'.$twilio_js_file;

if (!empty($this->application_sid))
{
Expand Down

0 comments on commit 51886f1

Please sign in to comment.