mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Remove duplicate code
This commit is contained in:
parent
68e447ddb1
commit
fb0378c432
@ -3756,10 +3756,9 @@ define([
|
||||
});
|
||||
checkCollapseButton();
|
||||
APP.toolbar.$bottomL.append(APP.$collapseButton);
|
||||
var isSmallScreen = () => window.innerWidth <= 600;
|
||||
APP.$collapseButton.off('click').on('click', function () {
|
||||
APP.$tree.toggle();
|
||||
if(!isSmallScreen()) {
|
||||
if (!APP.mobile()) {
|
||||
APP.$splitter.toggle(APP.$tree.is(':visible'));
|
||||
}
|
||||
checkCollapseButton();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user