diff --git a/frontend/src/Data.elm b/frontend/src/Data.elm index 25108b3..cdb4958 100644 --- a/frontend/src/Data.elm +++ b/frontend/src/Data.elm @@ -1,9 +1,9 @@ -module Data exposing (Provider(..), Url, pathSeparator, toHost, toUrl) +module Data exposing (Provider(..), Url, hostname, pathSeparator, toHost, toUrl) hostname : String hostname = - "https://cdn.hitsofcode.com/" + "https://gitcdn.tk/" type Provider diff --git a/frontend/src/Main.elm b/frontend/src/Main.elm index 6eaf024..56ae83f 100644 --- a/frontend/src/Main.elm +++ b/frontend/src/Main.elm @@ -1,7 +1,7 @@ module Main exposing (Model, Msg(..), init, main, update, view) import Browser -import Data exposing (Url, toHost, toUrl) +import Data exposing (Url, hostname, toHost, toUrl) import Html exposing (Html, br, div, h1, input, table, td, text, tr) import Html.Attributes exposing (disabled, placeholder, style, value) import Html.Events exposing (onInput) @@ -95,7 +95,7 @@ view state = , br [] [] , renderMUrl state.parsed ] - , input (myStyle2 [ placeholder "https://host/////", disabled True, value (displayMUrl state.parsed) ]) [] + , input (myStyle2 [ placeholder "https://" ++ hostname ++ "/////", disabled True, value (displayMUrl state.parsed) ]) [] ] ]