Reformat code.

Change-Id: Ic0a5b37fa01b4a13023e66af0518ea94919ee880
This commit is contained in:
Siebrand Mazeland
2012-11-11 10:34:10 +01:00
parent 743665d9f6
commit 98d7a8d9f9
7 changed files with 42 additions and 58 deletions

View File

@@ -36,9 +36,9 @@
// protocol is https, only if the service is not configured
// with http:// as the protocol
if ( service ) {
httpOnly = service.substring(0, 7) === 'http://';
httpOnly = service.substring( 0, 7 ) === 'http://';
currentProto = document.location.protocol;
if ( !httpOnly || currentProto === 'http:' ) {
if ( !httpOnly || currentProto === 'http:' ) {
var settings = {
cache: true,
dataType: 'jsonp',