fix: Do not load manifest from CDN
This commit is contained in:
@@ -8,27 +8,12 @@
|
|||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="description" content="{description}" />
|
<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" />
|
<link rel="canonical" href="{canonical-url}" data-react-helmet="true" />
|
||||||
{prefetch}
|
{prefetch}
|
||||||
<link
|
<link rel="shortcut icon" type="image/png" href="{shortcut-icon}" sizes="32x32" />
|
||||||
rel="shortcut icon"
|
<link rel="apple-touch-icon" type="image/png" href="{cdn-url}/static/images/apple-touch-icon.png" sizes="192x192" />
|
||||||
type="image/png"
|
<link rel="search" type="application/opensearchdescription+xml" href="{cdn-url}/opensearch.xml" title="Outline" />
|
||||||
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>
|
<style>
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Inter";
|
||||||
@@ -69,15 +54,10 @@
|
|||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
{env}
|
{env}
|
||||||
<script nonce="{csp-nonce}">
|
<script nonce="{csp-nonce}">
|
||||||
if (
|
if (window.localStorage && window.localStorage.getItem("theme") === "dark") {
|
||||||
window.localStorage &&
|
|
||||||
window.localStorage.getItem("theme") === "dark"
|
|
||||||
) {
|
|
||||||
var color = "#111319";
|
var color = "#111319";
|
||||||
document.querySelector("#root").style.background = color;
|
document.querySelector("#root").style.background = color;
|
||||||
document
|
document.querySelector('meta[name="theme-color"]').setAttribute("content", color);
|
||||||
.querySelector('meta[name="theme-color"]')
|
|
||||||
.setAttribute("content", color);
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{script-tags}
|
{script-tags}
|
||||||
|
|||||||
@@ -115,8 +115,8 @@ export default () =>
|
|||||||
short_name: "Outline",
|
short_name: "Outline",
|
||||||
theme_color: "#fff",
|
theme_color: "#fff",
|
||||||
background_color: "#fff",
|
background_color: "#fff",
|
||||||
start_url: process.env.URL ?? "/",
|
start_url: "/",
|
||||||
scope: process.env.URL ?? "/",
|
scope: ".",
|
||||||
display: "standalone",
|
display: "standalone",
|
||||||
// For Chrome, you must provide at least a 192x192 pixel icon, and a 512x512 pixel icon.
|
// 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
|
// If only those two icon sizes are provided, Chrome will automatically scale the icons
|
||||||
|
|||||||
Reference in New Issue
Block a user