hexo-mrzefr-filebed
Advanced tools
Comparing version 1.2.9 to 1.3.0
@@ -14,16 +14,3 @@ let mr = {}; //初始化函数 | ||
mr.switchDarkMode = function(){ | ||
const nowMode = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light' | ||
if (nowMode === 'light') { | ||
activateDarkMode() | ||
saveToLocal.set('theme', 'dark', 2) | ||
GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night) | ||
} else { | ||
activateLightMode() | ||
saveToLocal.set('theme', 'light', 2) | ||
GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day) | ||
} | ||
// handle some cases | ||
typeof utterancesTheme === 'function' && utterancesTheme() | ||
typeof FB === 'object' && window.loadFBComment() | ||
window.DISQUS && document.getElementById('disqus_thread').children.length && setTimeout(() => window.disqusReset(), 200) | ||
switchNightMode() | ||
}; | ||
@@ -30,0 +17,0 @@ //阅读模式 |
{ | ||
"name": "hexo-mrzefr-filebed", | ||
"version": "1.2.9", | ||
"version": "1.3.0", | ||
"description": "MrZeFr-Blog", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13420512
4685