Skip to content

Commit

Permalink
Remove broken abstraction
Browse files Browse the repository at this point in the history
This was never needed, I forgot about //!
  • Loading branch information
backspace committed Jul 20, 2024
1 parent f57e00c commit 403f58e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preload" as="image" href="/images/secret.gif">

<title>Clandestine Rendezvous</title>
<link href={"#{environment_protocol()}://fonts.googleapis.com/css?family=Oswald:300,400,700"} rel='stylesheet' type='text/css'>
<link href="//fonts.googleapis.com/css?family=Oswald:300,400,700" rel='stylesheet' type='text/css'>
<link rel="stylesheet" href={Routes.static_url(RegistrationsWeb.Endpoint, "/css/#{Application.get_env(:registrations, :adventure)}-email.css")}>
</head>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta property='og:description' content={phrase("description")}>

<title><%= phrase("title") %></title>
<link href={"#{environment_protocol()}://fonts.googleapis.com/css?family=Oswald:300,400,700"} rel='stylesheet' type='text/css'>
<link href="//fonts.googleapis.com/css?family=Oswald:300,400,700" rel='stylesheet' type='text/css'>
<link rel="stylesheet" href={Routes.static_path(@conn, "/css/#{Application.get_env(:registrations, :adventure)}.css")}>

<link rel='icon' href={"/images/#{adventure()}/favicon.ico"} />
Expand Down
8 changes: 0 additions & 8 deletions registrations/lib/registrations_web/views/shared_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ defmodule RegistrationsWeb.SharedHelpers do
end
end

def environment_protocol do
if Mix.env() == :prod do
"https"
else
"http"
end
end

def is_unmnemonic_devices() do
Application.get_env(:registrations, :adventure) == "unmnemonic-devices"
end
Expand Down

0 comments on commit 403f58e

Please sign in to comment.