Skip to content

Commit

Permalink
Fix TypeError: Illegal invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewphahn committed May 31, 2018
1 parent c0f4885 commit 4ce0650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function toggleCssClass(state){
var WIDE_CSS_CLASS = 'wide';
var body = document.querySelector('body');
var toggle = state ? body.classList.add : body.classList.remove;
toggle(WIDE_CSS_CLASS);
toggle.call(body.classList, WIDE_CSS_CLASS);
}

chrome.storage.onChanged.addListener(function (data) {
Expand Down

0 comments on commit 4ce0650

Please sign in to comment.