Fix the broken ability to change region and time preferences
This commit is contained in:
parent
f7d02e6572
commit
30faf5523d
@ -87,7 +87,7 @@ function updateRegionalToken(region, data) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateRegionPreference(newRegion) {
|
export function updateRegionPreference(newRegion) {
|
||||||
if (newRegion != current_region_selection) {
|
if (newRegion != current_region_selection) {
|
||||||
token_chart.destroy();
|
token_chart.destroy();
|
||||||
current_region_selection = newRegion;
|
current_region_selection = newRegion;
|
||||||
@ -95,7 +95,7 @@ function updateRegionPreference(newRegion) {
|
|||||||
formatToken();
|
formatToken();
|
||||||
pullChartData().then(populateChart);
|
pullChartData().then(populateChart);
|
||||||
}
|
}
|
||||||
function updateTimePreference(newTime) {
|
export function updateTimePreference(newTime) {
|
||||||
if (newTime != current_time_selection) {
|
if (newTime != current_time_selection) {
|
||||||
token_chart.destroy();
|
token_chart.destroy();
|
||||||
current_time_selection = newTime;
|
current_time_selection = newTime;
|
||||||
|
@ -4,7 +4,8 @@ module.exports = {
|
|||||||
entry: './src/index.js',
|
entry: './src/index.js',
|
||||||
output: {
|
output: {
|
||||||
filename: 'bundle.js',
|
filename: 'bundle.js',
|
||||||
path: path.resolve(__dirname, 'dist')
|
path: path.resolve(__dirname, 'dist'),
|
||||||
|
libraryTarget: 'window',
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
Loading…
Reference in New Issue
Block a user