Skip to content

Commit

Permalink
apply target configuration to StaticPlotTemplate
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
  • Loading branch information
andrei-ng committed May 10, 2024
1 parent 94f8016 commit e031a72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plotly/src/plot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ struct PlotTemplate<'a> {

#[derive(Template)]
#[template(path = "static_plot.html", escape = "none")]
#[cfg(not(target_family = "wasm"))]
struct StaticPlotTemplate<'a> {
plot: &'a Plot,
format: ImageFormat,
Expand Down

0 comments on commit e031a72

Please sign in to comment.