summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-07 14:11:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-07 14:11:29 +0000
commit016a38b4ca9d2e0b83418b7f19ad3c093f179ec1 (patch)
tree93dc2e5f59de57fc215e4c372f5c27d5bf63e93a
parentMinimizing remove-googlefonts.patch. (diff)
downloadnetdata-016a38b4ca9d2e0b83418b7f19ad3c093f179ec1.tar.xz
netdata-016a38b4ca9d2e0b83418b7f19ad3c093f179ec1.zip
Minimizing remove-googletagmanager.patch.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/patches/debian/0013-remove-googletagmanager.patch47
1 files changed, 25 insertions, 22 deletions
diff --git a/debian/patches/debian/0013-remove-googletagmanager.patch b/debian/patches/debian/0013-remove-googletagmanager.patch
index 77a6b0d31..2cface0eb 100644
--- a/debian/patches/debian/0013-remove-googletagmanager.patch
+++ b/debian/patches/debian/0013-remove-googletagmanager.patch
@@ -4,32 +4,35 @@ Subject: Remove Google Tag Manager for privacy reasons.
diff -Naurp netdata.orig/web/gui/console.html netdata/web/gui/console.html
--- netdata.orig/web/gui/console.html
+++ netdata/web/gui/console.html
-@@ -13,6 +13,7 @@
+@@ -11,18 +11,6 @@
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="icon" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAP9JREFUeNpiYBgFo+A/w34gpiZ8DzWzAYgNiHGAA5UdgA73g+2gcyhgg/0DGQoweB6IBQYyFCCOGOBQwBMd/xnW09ERDtgcoEBHB+zHFQrz6egIBUasocDAcJ9OxWAhE4YQI8MDILmATg7wZ8QRDfQKhQf4Cie6pAVGPA4AhQKo0BCgZRAw4ZSBpIWJNI6CD4wEKikBaFqgVSgcYMIrzcjwgcahcIGRiPYCLUPBkNhWUwP9akVcoQBpatG4MsLviAIqWj6f3Absfdq2igg7IIEKDVQKEzN5ofAenJCp1I8gJRTug5tfkGIdR1FDniMI+QZUjF8Amn5htOdHCAAEGACE6B0cS6mrEwAAAABJRU5ErkJggg==" />
- <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> -->
- <!-- Google Tag Manager -->
-+ <!--
- <script>(function (w, d, s, l, i) {
- w[l] = w[l] || []; w[l].push({
- 'gtm.start':
-@@ -23,6 +24,7 @@
- })(window, document, 'script', 'dataLayer', 'GTM-N6CBMJD');
- window.dataLayer = window.dataLayer || [];
- </script>
-+ -->
- <!-- End Google Tag Manager -->
+- <!-- Google Tag Manager -->
+- <script>(function (w, d, s, l, i) {
+- w[l] = w[l] || []; w[l].push({
+- 'gtm.start':
+- new Date().getTime(), event: 'gtm.js'
+- }); var f = d.getElementsByTagName(s)[0],
+- j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
+- 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
+- })(window, document, 'script', 'dataLayer', 'GTM-N6CBMJD');
+- window.dataLayer = window.dataLayer || [];
+- </script>
+- <!-- End Google Tag Manager -->
<script>
function loadJSFile(filename) {
-@@ -48,10 +50,12 @@
+ const s = document.createElement("script")
+@@ -46,12 +34,6 @@
+ </head>
<body class="mdc-theme--background mdc-typography">
- <!-- Google Tag Manager (noscript) -->
-+ <!--
- <noscript>
- <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6CBMJD" height="0" width="0"
- style="display:none;visibility:hidden"></iframe>
- </noscript>
-+ -->
- <!-- End Google Tag Manager (noscript) -->
+- <!-- Google Tag Manager (noscript) -->
+- <noscript>
+- <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6CBMJD" height="0" width="0"
+- style="display:none;visibility:hidden"></iframe>
+- </noscript>
+- <!-- End Google Tag Manager (noscript) -->
<main id="app" class="console-app" data-host="agent"></main>
<script>
+ const main = document.getElementById("app")