Skip to content

Commit 4ce75dc

Browse files
authored
Merge pull request #1045 from hovancik/workaround/bg-color
Add workaround for break window color issue
2 parents e391060 + 95189b9 commit 4ce75dc

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88

9+
### Fixed
10+
- added workaround for break window background color issue
11+
912
## [1.8.0] - 2021-11-21
1013
### Added
1114
- new break ideas

app/break.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ window.onload = (event) => {
3636
const closeElement = document.querySelector('#close')
3737
const mainColor = settings.get('mainColor')
3838
document.body.classList.add(mainColor.substring(1))
39+
document.body.style.backgroundColor = mainColor
3940

4041
document.querySelectorAll('.tiptext').forEach(tt => {
4142
const keyboardShortcut = settings.get('endBreakShortcut')

app/microbreak.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ window.onload = (e) => {
3434
const closeElement = document.querySelector('#close')
3535
const mainColor = settings.get('mainColor')
3636
document.body.classList.add(mainColor.substring(1))
37+
document.body.style.backgroundColor = mainColor
3738

3839
document.querySelectorAll('.tiptext').forEach(tt => {
3940
const keyboardShortcut = settings.get('endBreakShortcut')

0 commit comments

Comments
 (0)