Skip to content

Commit

Permalink
fix: Doctype in html export
Browse files Browse the repository at this point in the history
Firefox throws a warning

> Bogus doctype.Quirky doctype. Expected “<!DOCTYPE html>”.

Signed-off-by: asrar <[email protected]>
  • Loading branch information
aszenz committed Jul 24, 2024
1 parent 219a6b4 commit 62414df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/perspective-viewer/src/rust/model/export_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub fn render(data: &str, layout: &str, plugins: &[String]) -> String {
let imports = Itertools::intersperse(stmts, " ".to_owned()).collect::<String>();

format!("
<!DOCTYPE html lang=\"en\">
<html>
<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no\"/>
<link rel=\"stylesheet\" crossorigin=\"anonymous\" href=\"https://cdn.jsdelivr.net/npm/@finos/perspective-viewer@{0}/dist/css/themes.css\"/>
Expand Down

0 comments on commit 62414df

Please sign in to comment.