From e8cb4ddefb0d7ad603932754a7becbdd881e37af Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Tue, 16 Mar 2021 15:06:58 +0200 Subject: [PATCH] Fix syntax error in JS --- assets/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/app.js b/assets/js/app.js index e5a7d07b26..2c0a9ad645 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -108,10 +108,11 @@ if (embedButton) { embedLink.searchParams.set('background', background) } - embedCode.value = ` + embedCode.value = `
Stats powered by Plausible Analytics
` } catch (e) { + console.error(e) embedCode.value = 'ERROR: Please enter a valid URL in the shared link field' } })