Skip to content

best way to save what you love

add "powered by" text when running on hop

wukko3004daecc9b1
diff --git a/src/front/cobalt.css b/src/front/cobalt.css
index a0760c26..c0ae018b 100644
--- a/src/front/cobalt.css
+++ b/src/front/cobalt.css
@@ -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 {
diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js
index b8e0a407..48e1873c 100644
--- a/src/modules/pageRender/page.js
+++ b/src/modules/pageRender/page.js
@@ -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>' : ''}`
}]
})
}, {