Add bd-transparency class. (#1024)
This commit is contained in:
parent
3874fca041
commit
a0a4670ece
|
@ -9,10 +9,12 @@ export default new class WindowTransparency extends Builtin {
|
||||||
|
|
||||||
enabled() {
|
enabled() {
|
||||||
this.showModal(Strings.WindowPrefs.enabledInfo);
|
this.showModal(Strings.WindowPrefs.enabledInfo);
|
||||||
|
document.body.classList.add("bd-transparency");
|
||||||
}
|
}
|
||||||
|
|
||||||
disabled() {
|
disabled() {
|
||||||
this.showModal(Strings.WindowPrefs.disabledInfo);
|
this.showModal(Strings.WindowPrefs.disabledInfo);
|
||||||
|
document.body.classList.remove("bd-transparency");
|
||||||
}
|
}
|
||||||
|
|
||||||
showModal(info) {
|
showModal(info) {
|
||||||
|
|
Loading…
Reference in New Issue