Skip to content

Commit

Permalink
Using jquery in themes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 authored and thamara committed Jun 3, 2020
1 parent afb8282 commit 512beff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/__renderer__/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const {
applyTheme,
isValidTheme
} = require('../../js/themes');

window.$ = window.jQuery = require('jquery');

describe('Theme Functions', function() {

Expand Down
2 changes: 1 addition & 1 deletion js/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function applyTheme(theme) {
}

// Applies to the Primary view
document.querySelector('html').setAttribute('data-theme', theme);
$('html').attr('data-theme', theme);
return true;
}

Expand Down

0 comments on commit 512beff

Please sign in to comment.