Skip to content

Commit

Permalink
💥 Remove isActivated method (replaced with isDark/isLight)
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Apr 7, 2021
1 parent e8cfd72 commit 4ebce82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion dist/drkmd-js.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions src/drkmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,6 @@ export default class Darkmode {
return val
}

/**
* Check if the darkmode is activated
* @deprecated Use isDark and isLight
* @returns {boolean} isDark - true if theme is dark and false if it is light
*/
isActivated() {
return this.dark
}

/**
* Determine if the current theme is dark
* @returns {boolean} isDark - true if theme is dark and false if it is light
Expand Down

0 comments on commit 4ebce82

Please sign in to comment.