Fix shepherd themes being swapped
parent
fb874b7858
commit
2fcca8c105
|
@ -1,5 +1,5 @@
|
|||
function loadShepherd(f) {
|
||||
var theme = 'shepherd-theme-' + ($('body').hasClass('dark') ? 'default' : 'dark');
|
||||
var theme = 'shepherd-theme-' + ($('body').hasClass('dark') ? 'dark' : 'default');
|
||||
lichess.loadCss('vendor/shepherd/dist/css/' + theme + '.css');
|
||||
lichess.loadScript('vendor/shepherd/dist/js/tether.js', { noVersion: true }).then(function () {
|
||||
lichess.loadScript('vendor/shepherd/dist/js/shepherd.min.js', { noVersion: true }).then(function () {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function loadShepherd(f) {
|
||||
if (typeof Shepherd === 'undefined' || Shepherd.activeTour === null) {
|
||||
var theme = 'shepherd-theme-' + ($('body').hasClass('dark') ? 'default' : 'dark');
|
||||
var theme = 'shepherd-theme-' + ($('body').hasClass('dark') ? 'dark' : 'default');
|
||||
lichess.loadCss('vendor/shepherd/dist/css/' + theme + '.css');
|
||||
lichess.loadScript('vendor/shepherd/dist/js/tether.js', { noVersion: true }).then(function () {
|
||||
lichess.loadScript('vendor/shepherd/dist/js/shepherd.min.js', { noVersion: true }).then(function () {
|
||||
|
|
Loading…
Reference in New Issue