Fix flickering between light and custom themes

pull/3333/head
Victor Baranov 4 years ago
parent 9d6efa6385
commit 1d86967985
  1. 1
      apps/block_scout_web/lib/block_scout_web/templates/layout/app.html.eex

@ -42,7 +42,6 @@
function applyCustomMode() { function applyCustomMode() {
const darkForestContractAddressHash = "<%= dark_forest_address %>" const darkForestContractAddressHash = "<%= dark_forest_address %>"
const addressHash = "<%= @address.hash %>".toLowerCase()
if (window.location.pathname.toLowerCase().includes(darkForestContractAddressHash)) { if (window.location.pathname.toLowerCase().includes(darkForestContractAddressHash)) {
document.body.className += " " + "dark-forest-theme-applied"; document.body.className += " " + "dark-forest-theme-applied";
} }

Loading…
Cancel
Save