diff --git a/src/app.html b/src/app.html index f850d61..7272712 100644 --- a/src/app.html +++ b/src/app.html @@ -8,9 +8,9 @@ + %sveltekit.head% - %sveltekit.head%
%sveltekit.body%
diff --git a/src/lib/Analytics.svelte b/src/lib/Analytics.svelte index a066d0b..3dfba8d 100644 --- a/src/lib/Analytics.svelte +++ b/src/lib/Analytics.svelte @@ -14,14 +14,5 @@ - + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4f83fac..014a0d9 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -54,8 +54,7 @@
PDFCrypt -

+

PDFCrypt

diff --git a/src/routes/install/+page.svelte b/src/routes/install/+page.svelte index 99e0c53..c8d4ad4 100644 --- a/src/routes/install/+page.svelte +++ b/src/routes/install/+page.svelte @@ -58,7 +58,10 @@

MacOS

    -
  1. - Open the app in Safari. If you're using a Chrome-based browser, follow the Windows instructions instead.
  2. +
  3. + - Open the app in Safari. If you're using a Chrome-based browser, follow the + Windows instructions instead. +
  4. - Click the share button in the address bar.
  5. - Click "Add to Dock".
diff --git a/src/routes/privacy/+page.svelte b/src/routes/privacy/+page.svelte index b790a0d..b788715 100644 --- a/src/routes/privacy/+page.svelte +++ b/src/routes/privacy/+page.svelte @@ -1,7 +1,3 @@ - - PDFCrypt - Privacy Policy diff --git a/static/gtag.js b/static/gtag.js new file mode 100644 index 0000000..64eba88 --- /dev/null +++ b/static/gtag.js @@ -0,0 +1,6 @@ +window.dataLayer = window.dataLayer || []; +function gtag() { + dataLayer.push(arguments); +} +gtag('js', new Date()); +gtag('config', 'G-0RFZS8YNB7'); diff --git a/svelte.config.js b/svelte.config.js index 426394d..d6fbd13 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -13,6 +13,42 @@ const config = { }), paths: { base: process.argv.includes('dev') ? '' : process.env.BASE_PATH + }, + csp: { + mode: 'hash', + directives: { + 'default-src': ['self'], + 'script-src': [ + 'self', + 'wasm-unsafe-eval', + 'https://www.googletagmanager.com', + 'https://get.microsoft.com' + ], + 'style-src': ['self', 'unsafe-inline'], + 'img-src': [ + 'self', + 'data:', + 'https://www.google-analytics.com', + 'https://www.googletagmanager.com', + 'https://get.microsoft.com', + 'https://stats.g.doubleclick.net' + ], + 'connect-src': [ + 'self', + 'https://www.google-analytics.com', + 'https://analytics.google.com', + 'https://www.googletagmanager.com', + 'https://get.microsoft.com', + 'https://apps.microsoft.com', + 'https://stats.g.doubleclick.net' + ], + 'font-src': ['self'], + 'frame-src': ['self', 'https://get.microsoft.com'], + 'worker-src': ['self'], + 'manifest-src': ['self'], + 'object-src': ['none'], + 'base-uri': ['self'] + } } } };