Skip to content

Commit e031a72

Browse files
committed
apply target configuration to StaticPlotTemplate
Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent 94f8016 commit e031a72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plotly/src/plot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ struct PlotTemplate<'a> {
2020

2121
#[derive(Template)]
2222
#[template(path = "static_plot.html", escape = "none")]
23+
#[cfg(not(target_family = "wasm"))]
2324
struct StaticPlotTemplate<'a> {
2425
plot: &'a Plot,
2526
format: ImageFormat,

0 commit comments

Comments
 (0)