hexo-theme-solitude 1.8.11 → 1.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ include ../head/pwa.pug
27
27
 
28
28
  script.
29
29
  console.log(
30
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.11",
30
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.12",
31
31
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
32
32
  "padding: 5px 10px;color:white;background:#3e9f50;",
33
33
  "padding: 5px 10px;color:white;background:#0084ff;",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.8.11",
3
+ "version": "1.8.12",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the efu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
package/source/js/main.js CHANGED
@@ -136,7 +136,9 @@ function applyThemeColor(color) {
136
136
  const appleMobileWebAppMeta = document.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');
137
137
  themeColorMeta?.setAttribute("content", color);
138
138
  appleMobileWebAppMeta?.setAttribute("content", color);
139
- document.body.style.backgroundColor = color;
139
+ if (window.matchMedia("(display-mode: standalone)").matches) {
140
+ document.body.style.backgroundColor = color;
141
+ }
140
142
  }
141
143
 
142
144
  /**