Use approved production map and branding assets
This commit is contained in:
@@ -94,12 +94,12 @@ export const MapView: Component<{ type: MapResolution, data: () => ResultKeyVal[
|
||||
|
||||
function downloadPng() {
|
||||
const canvas = getCanvas()!;
|
||||
if (productionTemplate && (canvas.width !== 3840 || canvas.height !== 1440)) {
|
||||
console.error(`Faktiskā export blocked: expected 3840 × 1440, received ${canvas.width} × ${canvas.height}`);
|
||||
if (productionTemplate && (canvas.width !== props.width || canvas.height !== props.height)) {
|
||||
console.error(`Faktiskā export blocked: expected ${props.width} × ${props.height}, received ${canvas.width} × ${canvas.height}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const filename = productionTemplate ? "faktiska-3840x1440.png" : `weather-${type}.png`;
|
||||
const filename = productionTemplate ? `faktiska-${props.width}x${props.height}.png` : `weather-${type}.png`;
|
||||
canvas.toBlob(blob => blob && download(blob, filename), 'image/png')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user