mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-26 15:16:14 +00:00
npm run prettier
This commit is contained in:
@@ -65,11 +65,7 @@ function getStaticUrl(): string | undefined {
|
|||||||
const metaTag = document.querySelector('meta[name="topola-static-url"]');
|
const metaTag = document.querySelector('meta[name="topola-static-url"]');
|
||||||
const metaUrl = metaTag?.getAttribute('content');
|
const metaUrl = metaTag?.getAttribute('content');
|
||||||
// Safely ignore if it is empty, the raw caddy template expression, or Vite's raw template placeholder
|
// Safely ignore if it is empty, the raw caddy template expression, or Vite's raw template placeholder
|
||||||
if (
|
if (metaUrl && !metaUrl.startsWith('__') && !metaUrl.includes('{{ env')) {
|
||||||
metaUrl &&
|
|
||||||
!metaUrl.startsWith("__") &&
|
|
||||||
!metaUrl.includes("{{ env")
|
|
||||||
) {
|
|
||||||
return metaUrl;
|
return metaUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user