From 25a4d3b6e17c2a5f6a935446ea97d06a323f71f6 Mon Sep 17 00:00:00 2001
From: rphla <101242699+rphla@users.noreply.github.com>
Date: Tue, 05 Jul 2022 22:39:29 +0000
Subject: [PATCH] Add GitHub "edit" button (#157)

---
 assets/js/darkmode.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/assets/js/darkmode.js b/assets/js/darkmode.js
index 11ce15f..8168d77 100644
--- a/assets/js/darkmode.js
+++ b/assets/js/darkmode.js
@@ -8,7 +8,7 @@
 
 if (currentTheme) {
   document.documentElement.setAttribute('saved-theme', currentTheme);
-  (currentTheme === 'dark') ? syntaxTheme.href = '{{ $darkSyntax.Permalink }}' : syntaxTheme.href = '{{ $lightSyntax.Permalink }}';
+  syntaxTheme.href = currentTheme === 'dark' ?  '{{ $darkSyntax.Permalink }}' :  '{{ $lightSyntax.Permalink }}';
 }
 
 const switchTheme = (e) => {

--
Gitblit v1.10.0