mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-08 22:50:00 +08:00
updating meta theme color on theme change
This commit is contained in:
parent
3256eee510
commit
1a0f7aff61
2 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="A super customisable, minimalistic typing test.">
|
||||
<meta property="og:image" content="https://monkey-type.com/mtsocial_large.png">
|
||||
<meta name="theme-color" content="#e2b714">
|
||||
<meta name="theme-color" content="#e2b714" id="metaThemeColor">
|
||||
<meta name="twitter:title" content="Monkey Type">
|
||||
<meta name="twitter:image" content="https://monkey-type.com/mtsocial_large.png">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
|
|
|
@ -573,6 +573,7 @@ function setTheme(name, nosave) {
|
|||
}
|
||||
setTimeout(() => {
|
||||
refreshThemeColorObject();
|
||||
$("#metaThemeColor").attr("content", themeColors.main);
|
||||
}, 500);
|
||||
if (!nosave) saveConfigToCookie();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue