Registrations currently disabled due to spam. Contact me externally if you need an account

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

injecting msapplication-TileColor and theme-color on meta

parent 26c5ce07
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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" />
+3 −1
Original line number Diff line number Diff line
@@ -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) {