From 4106d9585dba1a7d74ec8e6c3708fe33c6b8f3f5 Mon Sep 17 00:00:00 2001 From: tarikjaber <55803936+tarikjaber@users.noreply.github.com> Date: Sat, 4 Mar 2023 00:26:15 -0500 Subject: [PATCH] Improve performance --- index.html | 4 ++-- index.js | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index e0cad1d..3e0e64e 100644 --- a/index.html +++ b/index.html @@ -27,9 +27,9 @@ - - + diff --git a/index.js b/index.js index 3a276e1..30698f8 100644 --- a/index.js +++ b/index.js @@ -12,12 +12,6 @@ let selectedTheme = localStorage.getItem('theme') || 'github-dark'; let codeText = localStorage.getItem('code') || 'console.log("Hello World")'; // Set up the initial state -document.addEventListener('securitypolicyviolation', function (event) { - if (event.violatedDirective === 'expect-ct') { - event.preventDefault(); - } -}); - themeStylesheet.setAttribute('href', getStylesheet(selectedTheme)); themeSelector.value = selectedTheme; code.classList.add('hljs', `language-${selectedLanguage}`);