switch PWAs to minimal-ui and delete and the target _blank js code

pull/2/head
Aevann1 2022-11-21 20:30:11 +02:00
parent 3f0966bf03
commit 087ba467db
7 changed files with 14 additions and 24 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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"
}
]
}
}

View File

@ -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">

View File

@ -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">

View File

@ -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">

View File

@ -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}}">