Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jun 23, 2022
2 parents 8b2ea8c + 0df6d3e commit 6fdcdb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/theme-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ document.addEventListener('DOMContentLoaded', function() {
const newStyle = languages.map((language) => {
return language === newLanguage
// the current one should be visible
? `body .content .${language}-example code { display: block; }`
? `body .content .${language}-example pre { display: block; }`
// the inactive one should be hidden
: `body .content .${language}-example code { display: none; }`;
: `body .content .${language}-example pre { display: none; }`;
}).join(`\n`);

Array.from(langSelector).forEach((elem) => {
Expand Down

0 comments on commit 6fdcdb8

Please sign in to comment.