diff --git a/index.html b/index.html index 84626b0..37802f0 100755 --- a/index.html +++ b/index.html @@ -326,10 +326,6 @@ function updateGutters(cm) { - - - - diff --git a/index.js b/index.js index 9bc6db0..592049e 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -/* global CodeMirror plausible */ +/* global CodeMirror */ import { Cookies } from './modules/cookies.js' import { Fontsize } from './modules/fontsize.js' @@ -44,7 +44,7 @@ function getFont () { } // ProgrammingFonts font selector -function selectFont (trigger) { +function selectFont () { const msg = document.querySelector('footer .subtitle') const codeMirror = document.querySelector('.CodeMirror') const font = getFont() @@ -91,15 +91,6 @@ function selectFont (trigger) { } } - if (trigger === 'hash') { - plausible(font) - plausible('Font Selected', { - props: { - font - } - }) - } - Cookies.set('font', font) } @@ -234,7 +225,7 @@ function walk (direction) { } window.onhashchange = () => { - selectFont('hash') + selectFont() } window.addEventListener('DOMContentLoaded', () => {