Skip to content

Commit

Permalink
Merge pull request #62 from web83info/hotfix-js-error-wpadminbar
Browse files Browse the repository at this point in the history
Fix: JavaScript error, when no 'wp-admin-bar-show-current-width'
  • Loading branch information
web83info authored Jan 24, 2024
2 parents 93f828f + 26e7796 commit aee3f43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/show-current-width.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ShowCurrentWidth {

showWidth() {
this.widthTo = window.innerWidth;
if(document.getElementById('wpadminbar') == null) {
if(document.getElementById('wp-admin-bar-show-current-width') == null) {
return;
}
if(1 == ShowCurrentWidthVariables.animation_show) {
Expand Down
2 changes: 1 addition & 1 deletion assets/show-current-width.min.js

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

0 comments on commit aee3f43

Please sign in to comment.