add "powered by" text when running on hop

This commit is contained in:
wukko 2023-04-09 11:58:29 +06:00
parent 80de6a1ebe
commit 3004daecc9
2 changed files with 5 additions and 0 deletions

View file

@ -658,6 +658,10 @@ input[type="checkbox"] {
#pd-share {
display: none;
}
#hop-attribution {
display: block;
text-align: right;
}
/* adapt the page according to screen size */
@media screen and (min-width: 2300px) {
html {

View file

@ -106,6 +106,7 @@ export default function(obj) {
"title": t("CollapsePrivacy"),
"body": t("PrivacyPolicy")
}])
+ `${process.env.DEPLOYMENT_ID && process.env.INTERNAL_IP ? '<a id="hop-attribution" class="explanation" href="https://hop.io/" target="_blank">powered by hop.io</a>' : ''}`
}]
})
}, {