switch PWAs to minimal-ui and delete and the target _blank js code
parent
3f0966bf03
commit
087ba467db
|
@ -2,7 +2,7 @@
|
|||
"name": "PCM",
|
||||
"short_name": "PCM",
|
||||
"start_url": "https://pcmemes.net",
|
||||
"display": "standalone",
|
||||
"display": "minimal-ui",
|
||||
"background_color": "#805AD5",
|
||||
"description": "PCM",
|
||||
"offline_enabled": true,
|
||||
|
@ -10,7 +10,8 @@
|
|||
{
|
||||
"src": "/i/PCM/192.png?v=2001",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/i/PCM/512.png?v=2001",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "WPD",
|
||||
"short_name": "WPD",
|
||||
"start_url": "https://watchpeopledie.tv",
|
||||
"display": "standalone",
|
||||
"display": "minimal-ui",
|
||||
"background_color": "#805AD5",
|
||||
"description": "WPD",
|
||||
"offline_enabled": true,
|
||||
|
@ -10,7 +10,8 @@
|
|||
{
|
||||
"src": "/i/WPD/192.png?v=2001",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/i/WPD/512.png?v=2001",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "rDrama",
|
||||
"short_name": "rDrama",
|
||||
"start_url": "https://rdrama.net",
|
||||
"display": "standalone",
|
||||
"display": "minimal-ui",
|
||||
"background_color": "#FF66AC",
|
||||
"description": "rDrama",
|
||||
"offline_enabled": true,
|
||||
|
@ -10,7 +10,8 @@
|
|||
{
|
||||
"src": "/i/rDrama/192.png?v=2000",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/i/rDrama/512.png?v=2000",
|
||||
|
@ -18,4 +19,4 @@
|
|||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/i/PCM/icon.webp?v=3009">
|
||||
<link rel="manifest" href="/assets/manifest_PCM.json?v=7">
|
||||
<link rel="manifest" href="/assets/manifest_PCM.json?v=8">
|
||||
<link rel="mask-icon" href="/i/PCM/icon.webp?v=3009">
|
||||
<link rel="shortcut icon" href="/i/PCM/icon.webp?v=3009">
|
||||
<meta name="apple-mobile-web-app-title" content="PCM">
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/i/WPD/icon.webp?v=3009">
|
||||
<link rel="manifest" href="/assets/manifest_WPD.json?v=7">
|
||||
<link rel="manifest" href="/assets/manifest_WPD.json?v=8">
|
||||
<link rel="mask-icon" href="/i/WPD/icon.webp?v=3009">
|
||||
<link rel="shortcut icon" href="/i/WPD/icon.webp?v=3009">
|
||||
<meta name="apple-mobile-web-app-title" content="WPD">
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/i/rDrama/icon.webp?v=3009">
|
||||
<link rel="manifest" href="/assets/manifest_rDrama.json?v=7">
|
||||
<link rel="manifest" href="/assets/manifest_rDrama.json?v=8">
|
||||
<link rel="mask-icon" href="/i/rDrama/icon.webp?v=3009">
|
||||
<link rel="shortcut icon" href="/i/rDrama/icon.webp?v=3009">
|
||||
<meta name="apple-mobile-web-app-title" content="rDrama">
|
||||
|
|
|
@ -11,19 +11,6 @@
|
|||
{% macro javascript() %}
|
||||
<script defer src="{{'js/vendor/bootstrap.js' | asset}}"></script>
|
||||
<script defer src="{{'js/core.js' | asset}}"></script>
|
||||
|
||||
<script>
|
||||
if (window.matchMedia('(display-mode: standalone)')['matches']) { // if PWA
|
||||
function link_trigger(e) {
|
||||
const links = e.querySelectorAll('a[target="_blank"]'); // get links with target="_blank"
|
||||
for (const link of links) { // loop on them
|
||||
link.removeAttribute("target");
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', link_trigger(document));
|
||||
}
|
||||
</script>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro page_meta(title=none) %}
|
||||
|
@ -173,7 +160,7 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{'icon.webp' | asset_siteimg}}">
|
||||
<link rel="manifest" href="/assets/manifest_{{SITE_NAME}}.json?v=7">
|
||||
<link rel="manifest" href="/assets/manifest_{{SITE_NAME}}.json?v=8">
|
||||
<link rel="mask-icon" href="{{'icon.webp' | asset_siteimg}}">
|
||||
<link rel="shortcut icon" href="{{'icon.webp' | asset_siteimg}}">
|
||||
<meta name="apple-mobile-web-app-title" content="{{SITE_NAME}}">
|
||||
|
|
Loading…
Reference in New Issue