nprapps / ice-melt

https://apps.npr.org/arctic-ice-melting-climate-change/
Other
0 stars 0 forks source link

Figure out to avoid calling map js in Nepal #120

Open DanielJWood opened 1 year ago

DanielJWood commented 1 year ago

I've created workarounds in commit 0275bcf but it doesn't quite pass the sniff test to me...you're still seeing some errors though they don't seem to be breaking...

Is there a way to require the map.js so that it entirely doesn't run on Nepal?

DanielJWood commented 1 year ago

I tried wrapping the require function in an if statement but that didn't work, which makes sense...I think map.js needs to be more properly exported and then called in main.js with an if statement surrounding it.

DanielJWood commented 1 year ago

in the mean time i'm wrapping stuff in if statements to exclude nepal inside the map.js function. which is not ideal.