From c5f342c7f6079eadcf66c93e05791a988d2cdbcd Mon Sep 17 00:00:00 2001 From: pomeloy <45542782+pomeloy@users.noreply.github.com> Date: Sat, 20 Jan 2024 08:49:12 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=92=84=20Fix=20Safari=20status?= =?UTF-8?q?=20bar=20style"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/appearance.js | 4 ---- layouts/partials/head.html | 1 - 2 files changed, 5 deletions(-) diff --git a/assets/js/appearance.js b/assets/js/appearance.js index cbbf28f7..dd5ad69d 100644 --- a/assets/js/appearance.js +++ b/assets/js/appearance.js @@ -8,13 +8,9 @@ function getCSSValue(varName) { function setThemeColor() { var metaThemeColor = document.querySelector("meta[name=theme-color]"); - var metaAppleMobileWebAppStatusBarStyle = document.querySelector("meta[name=apple-mobile-web-app-status-bar-style]"); document.documentElement.classList.contains("dark") ? metaThemeColor.setAttribute("content", getCSSValue("--color-neutral-800")) : metaThemeColor.setAttribute("content", getCSSValue("--color-neutral")); - document.documentElement.classList.contains("dark") - ? metaAppleMobileWebAppStatusBarStyle.setAttribute("content", getCSSValue("--color-neutral-800")) - : metaAppleMobileWebAppStatusBarStyle.setAttribute("content", getCSSValue("--color-neutral")); return true; } diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 77b32455..2d096767 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,7 +2,6 @@ - {{/* Title */}} {{ if .IsHome -}} {{ .Site.Title | emojify }}