fix: Do not load manifest from CDN

This commit is contained in:
Tom Moor
2023-11-28 08:29:41 -05:00
parent a4341b0d89
commit 9b335b5342
2 changed files with 8 additions and 28 deletions

View File

@@ -8,27 +8,12 @@
<meta name="color-scheme" content="light dark" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="description" content="{description}" />
<link rel="manifest" href="{cdn-url}/static/manifest.webmanifest" />
<link rel="manifest" href="/static/manifest.webmanifest" />
<link rel="canonical" href="{canonical-url}" data-react-helmet="true" />
{prefetch}
<link
rel="shortcut icon"
type="image/png"
href="{shortcut-icon}"
sizes="32x32"
/>
<link
rel="apple-touch-icon"
type="image/png"
href="{cdn-url}/static/images/apple-touch-icon.png"
sizes="192x192"
/>
<link
rel="search"
type="application/opensearchdescription+xml"
href="{cdn-url}/opensearch.xml"
title="Outline"
/>
<link rel="shortcut icon" type="image/png" href="{shortcut-icon}" sizes="32x32" />
<link rel="apple-touch-icon" type="image/png" href="{cdn-url}/static/images/apple-touch-icon.png" sizes="192x192" />
<link rel="search" type="application/opensearchdescription+xml" href="{cdn-url}/opensearch.xml" title="Outline" />
<style>
@font-face {
font-family: "Inter";
@@ -69,15 +54,10 @@
<div id="root"></div>
{env}
<script nonce="{csp-nonce}">
if (
window.localStorage &&
window.localStorage.getItem("theme") === "dark"
) {
if (window.localStorage && window.localStorage.getItem("theme") === "dark") {
var color = "#111319";
document.querySelector("#root").style.background = color;
document
.querySelector('meta[name="theme-color"]')
.setAttribute("content", color);
document.querySelector('meta[name="theme-color"]').setAttribute("content", color);
}
</script>
{script-tags}

View File

@@ -115,8 +115,8 @@ export default () =>
short_name: "Outline",
theme_color: "#fff",
background_color: "#fff",
start_url: process.env.URL ?? "/",
scope: process.env.URL ?? "/",
start_url: "/",
scope: ".",
display: "standalone",
// For Chrome, you must provide at least a 192x192 pixel icon, and a 512x512 pixel icon.
// If only those two icon sizes are provided, Chrome will automatically scale the icons