Commit 5c2bc467 authored by Gabriel Engel's avatar Gabriel Engel

injecting msapplication-TileColor and theme-color on meta

parent 26c5ce07
......@@ -9,10 +9,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="msapplication-TileColor" content="#04436a" />
<meta name="msapplication-TileImage" content="images/logo/mstile-144x144.png?v=3" />
<meta name="msapplication-config" content="images/logo/browserconfig.xml?v=3" />
<meta name="theme-color" content="#04436a" />
<link rel="manifest" href="images/logo/manifest.json?v=3" />
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/nocfbnnmjnndkbipkabodnheejiegccf" />
<link rel="icon" sizes="any" type="image/svg+xml" href="assets/favicon.svg?v=3" />
......
......@@ -64,7 +64,9 @@ if (process.env.DISABLE_ANIMATION) {
}
RocketChat.settings.get('theme-color-primary-background-color', function(key, value = '#04436a') {
Inject.rawHead(key, `<style>body { background-color: ${value};}</style>`);
Inject.rawHead(key, `<style>body { background-color: ${value};}</style>` +
`<meta name="msapplication-TileColor" content="${value}" />` +
`<meta name="theme-color" content="${value}" />`);
});
RocketChat.settings.get('Accounts_ForgetUserSessionOnWindowClose', function(key, value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment