Update Desktop.js (#334)

This commit is contained in:
maxkadushkin 2020-02-07 16:15:41 +03:00 committed by GitHub
parent c0734656fe
commit 7ff056f7d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,6 +118,13 @@ define([
if ( !!obj.action ) {
titlebuttons[obj.action].btn.click();
}
} else
if (/element:show/.test(cmd)) {
var _mr = /title:(?:(true|show)|(false|hide))/.exec(param);
if ( _mr ) {
if (!!_mr[1]) $('#app-title').show();
else if (!!_mr[2]) $('#app-title').hide();
}
}
};