Skip to content

Commit

Permalink
Remove obsolete meta http-equiv tag (phoenixframework#4960)
Browse files Browse the repository at this point in the history
And shorten meta viewport tag to common practice.
  • Loading branch information
cw789 authored Sep 21, 2022
1 parent 36e5c57 commit db2131d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions guides/howto/custom_error_pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ Phoenix generates an `ErrorView` for us, but it doesn't give us a `lib/hello_web
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Welcome to Phoenix!</title>
<link rel="stylesheet" href="/css/app.css"/>
<script defer type="text/javascript" src="/js/app.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions installer/templates/phx_web/templates/layout/root.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="csrf-token" content={get_csrf_token()}>
<.live_title suffix=" · Phoenix Framework"><%%= assigns[:page_title] || "<%= @app_module %>" %></.live_title>
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"}/>
Expand Down

0 comments on commit db2131d

Please sign in to comment.