cfpb-chart-builder
Advanced tools
Comparing version 4.0.2 to 4.0.3
{ | ||
"name": "cfpb-chart-builder", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Charts for the Consumer Financial Protection Bureau", | ||
@@ -5,0 +5,0 @@ "main": "src/js/index.js", |
const ajax = require( 'xdr' ); | ||
const cache = require( './session-storage' ); | ||
/* IE9 doesn't allow XHR from different protocols so we check what protocol | ||
is being used and accommodate it . */ | ||
let DATA_SOURCE_BASE = window.location.protocol.indexOf( 'https' ) === -1 ? | ||
// HTTP-only endpoint | ||
'//files.consumerfinance.gov.s3.amazonaws.com/data/' : | ||
// HTTPS-only endpoint | ||
'//files.consumerfinance.gov/data/'; | ||
let DATA_SOURCE_BASE = 'https://files.consumerfinance.gov/data/'; | ||
// Let browsers override the data source root (useful for localhost testing) | ||
// Let browsers override the data source root (useful for localhost testing). | ||
DATA_SOURCE_BASE = window.CFPB_CHART_DATA_SOURCE_BASE || DATA_SOURCE_BASE; | ||
@@ -14,0 +8,0 @@ |
const ajax = require( './get-data' ); | ||
const cache = require( './session-storage' ); | ||
/* IE9 doesn't allow XHR from different protocols so we check what protocol | ||
is being used and accommodate it . */ | ||
const DATA_SOURCE_BASE = window.location.protocol.indexOf( 'https' ) === -1 ? | ||
// HTTP-only endpoint | ||
'//files.consumerfinance.gov.s3.amazonaws.com/data/' : | ||
// HTTPS-only endpoint | ||
'//files.consumerfinance.gov/data/'; | ||
const DATA_SOURCE_BASE = 'https://files.consumerfinance.gov/data/'; | ||
@@ -12,0 +6,0 @@ const shapes = { |
4
2106002
95
31673