mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Remove ms_browserconfig
This commit is contained in:
parent
f360c28597
commit
6a642159b8
@ -54,8 +54,7 @@ favicon:
|
||||
medium: /images/favicon-32x32-next.png
|
||||
apple_touch_icon: /images/apple-touch-icon-next.png
|
||||
safari_pinned_tab: /images/logo.svg
|
||||
#android_manifest: /images/manifest.json
|
||||
#ms_browserconfig: /images/browserconfig.xml
|
||||
#android_manifest: /manifest.json
|
||||
|
||||
# Custom Logo (Warning: Do not support scheme Mist)
|
||||
custom_logo: #/uploads/custom-logo.jpg
|
||||
|
||||
@ -20,9 +20,6 @@
|
||||
{%- if theme.favicon.android_manifest %}
|
||||
<link rel="manifest" href="{{ url_for(theme.favicon.android_manifest) }}">
|
||||
{%- endif %}
|
||||
{%- if theme.favicon.ms_browserconfig %}
|
||||
<meta name="msapplication-config" content="{{ url_for(theme.favicon.ms_browserconfig) }}">
|
||||
{%- endif %}
|
||||
|
||||
{%- if theme.disable_baidu_transformation %}
|
||||
<meta http-equiv="Cache-Control" content="no-transform">
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// CSS Style Guide: http://codeguide.co/#css
|
||||
// CSS Style Guide: https://codeguide.co/#css
|
||||
|
||||
|
||||
$scheme = hexo-config('scheme') ? hexo-config('scheme') : 'Muse';
|
||||
|
||||
@ -283,10 +283,9 @@ NexT.utils = {
|
||||
|
||||
supportsPDFs: function() {
|
||||
const ua = navigator.userAgent;
|
||||
const isFirefoxWithPDFJS = ua.includes('irefox') && parseInt(ua.split('rv:')[1].split('.')[0], 10) > 18;
|
||||
const supportsPdfMimeType = typeof navigator.mimeTypes['application/pdf'] !== 'undefined';
|
||||
const isIOS = /iphone|ipad|ipod/i.test(ua.toLowerCase());
|
||||
return isFirefoxWithPDFJS || (supportsPdfMimeType && !isIOS);
|
||||
return ua.includes('irefox') || (supportsPdfMimeType && !isIOS);
|
||||
},
|
||||
|
||||
getComputedStyle: function(element) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user