Skip to content

Commit

Permalink
Fixed TypeError: Attempted to assign to readonly property
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Apr 14, 2023
1 parent 634782e commit ec9f60c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 144 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
*.log
package-lock.json
bun.lockb

.idea/
dist/
node_modules/
2 changes: 1 addition & 1 deletion lib/widgets/scrollablebox.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function ScrollableBox(options) {
this.alwaysScroll = options.alwaysScroll;

this.scrollbar = options.scrollbar;
if (this.scrollbar) {
if (this.scrollbar && typeof this.scrollbar === 'object') {
this.scrollbar.ch = this.scrollbar.ch || ' ';
this.style.scrollbar = this.style.scrollbar || this.scrollbar.style;
if (!this.style.scrollbar) {
Expand Down
143 changes: 0 additions & 143 deletions test/git.diff

This file was deleted.

0 comments on commit ec9f60c

Please sign in to comment.