extended forecast as html
This commit is contained in:
parent
49a4a2b2d5
commit
ebb932ab13
10 changed files with 202 additions and 53 deletions
|
|
@ -42,9 +42,8 @@ const utils = (() => {
|
|||
const cachedImages = [];
|
||||
const preload = (src) => {
|
||||
if (cachedImages.includes(src)) return false;
|
||||
const img = new Image();
|
||||
img.scr = src;
|
||||
cachedImages.push(src);
|
||||
blob(src);
|
||||
// cachedImages.push(src);
|
||||
return true;
|
||||
};
|
||||
|
||||
|
|
@ -177,7 +176,7 @@ const utils = (() => {
|
|||
// build a url, including the rewrite for cors if necessary
|
||||
let corsUrl = _url;
|
||||
if (params.cors === true) corsUrl = rewriteUrl(_url);
|
||||
const url = new URL(corsUrl);
|
||||
const url = new URL(corsUrl, `${window.location.origin}/`);
|
||||
// match the security protocol
|
||||
url.protocol = window.location.protocol;
|
||||
// add parameters if necessary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue