concise handling of cors urls

This commit is contained in:
Matt Walsh
2020-09-24 19:51:29 -05:00
parent 34e7775838
commit e8c7dfa6a7
3 changed files with 21 additions and 8 deletions

View File

@@ -28,8 +28,8 @@ class Almanac extends WeatherDisplay {
// get images for outlook
const imagePromises = [
utils.image.load('products/predictions/30day/off14_temp.gif'),
utils.image.load('products/predictions/30day/off14_prcp.gif'),
utils.image.load('https://www.cpc.ncep.noaa.gov/products/predictions/30day/off14_temp.gif', true),
utils.image.load('https://www.cpc.ncep.noaa.gov/products/predictions/30day/off14_prcp.gif', true),
];
// get sun/moon data