hide when too narrow
This commit is contained in:
@@ -150,8 +150,9 @@ class WelcomeMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async update() {
|
async update() {
|
||||||
// console.log('update')
|
console.log('update')
|
||||||
if (!await this.isChatbotEmpty()) {
|
var page_width = document.documentElement.clientWidth;
|
||||||
|
if (!await this.isChatbotEmpty() || page_width < 1100) {
|
||||||
if (this.visible) {
|
if (this.visible) {
|
||||||
this.removeWelcome();
|
this.removeWelcome();
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user